【发布时间】:2019-07-04 07:20:47
【问题描述】:
当我从 url 运行 firebase 函数时,我收到此错误:Your client does not have permission to get URL /testing from this server.,谁能帮助我为什么会收到此错误?在这里我添加了我的代码
这是我的代码
const express = require('express');
const app = express();
const cors = require('cors');
app.use(cors({ origin: true }));
app.get('/testing', (req, res) => {
res.send({ 'status': 0});
});
exports.widgets = functions.https.onRequest(app);
【问题讨论】:
标签: node.js firebase express google-cloud-functions