【发布时间】:2020-12-07 15:18:24
【问题描述】:
我正在使用 firebase 在我的机器上进行测试。
在firebase serve之后
我只能使用 HTTP 访问函数:
http://localhost:5001/project/us-central1/endpoint
但是,当我尝试获取参数时。
export const basicHTTP = functions.https.onRequest((req, res) => {
const name = req.params.name
res.send(`Hi, good! ${name}`)
})
我无法检索任何参数。我想我必须以 https 访问我的本地主机。
但我的本地环境不提供通过 SSL 访问的方式。 我该如何处理?
【问题讨论】:
标签: node.js firebase ssl google-cloud-functions firebase-tools