Hello all!
Seeking your help with this issue I'm struggling with for days. I'm beginning to think http requests from Angular to Cloud Functions cannot overcome some CORS limitation, at least when attempted from my dev environment.
I've posted this StackOVerflow question a couple of days ago, but no true help emerges.
If you can identify something I have missed - please let me know, this is my last attempt with Cloud Functions for this project 😞
Thank you!
Hi,
Since CORS consists of two requests (a preflight OPTIONS
request, and a main request that follows the OPTIONS
request), to handle a preflight request, you must set the appropriate Access-Control-Allow-*
headers to match the requests you want to accept. We have code samples for different languages on how to this.
You can also use a third-party library to handle CORS for you if above examples do not suit your use case.
this issue resolved? I am also struggling with this and haven't found anything till now? If so could you please add detailed resolution steps as I am very new to cloud and very much disappointed due to GCF behaviour?
@skare @morsagmon did you find any solutions to this issue? I am also struggling with a cors error and I am not able to find anything helpful