Firebase Callable Function + CORS

后端 未结 9 1250
Happy的楠姐
Happy的楠姐 2020-12-15 04:52

I\'m trying to call a callable Cloud Function from my app, but I\'m facing CORS issues.

I can\'t enable Cors since I don\'t have access to the request and response

9条回答
  •  臣服心动
    2020-12-15 05:21

    I previously had deployed my function as an HTTP function (https.onRequest), then switched to a callable function (https.onCall). Firebase did not recognize this change.

    I solved the problem by removing the function and deploying without it, then putting the function back in and deploying again.

提交回复
热议问题