[cloud_functions] (WEB) Workaround to avoid preflight Request. #5623
Unanswered
kaumudpa
asked this question in
Feature request
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
This seems to be an issue with the js sdk: See firebase/firebase-js-sdk#1800. You can find some workarounds there. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
While calling
oncall
http function from Web app there is always a CORS preflight request which ends with status204
before the actual function starts.Is there a workaround to avoid this? Since the preflight request invocation is also counted as a invocation towards the allotted quota.
To Reproduce:
204
and the second one ending with200
.The first execution is the preflight request while the second one is the actual execution of our function.
Note : This behaviour is only shown while calling the function from flutter web. On IOS and Andriod the function works completely fine.
Beta Was this translation helpful? Give feedback.
All reactions