【发布时间】:2022-01-22 16:46:40
【问题描述】:
我有两个云函数:一个前端和一个 API。我已将frontend 服务帐户添加到具有Cloud Function Invoker 权限的前端云功能:
我还明确将此服务帐户添加为 API 云函数的权限,但我仍然收到403 Not Authorized 状态。
const categories = await this.$axios.$get("/api/v1/categories/", {
params: { hasParent: 0 },
});
【问题讨论】:
-
你能分享一段你从前端调用API的代码吗?
-
@guillaumeblaquiere 添加了通话
标签: google-cloud-functions http-status-code-403 google-iam