Open ohabash opened 1 year ago
hit the same problem, it would be nice to be able to set the 'Access-Control-Allow-Origin' header
There is an option on setup for this. But the default of * is not working for me. This is important feature for flutter web.
There is an option on setup for this. But the default of * is not working for me. This is important feature for flutter web.
further investigation and it seems you are missing the correct response on an OPTIONS request. The options request needs to return the correct cors headers else a get will never be attempted by many browser apps.
Explained well here: https://dev.to/didof/cors-preflight-request-and-option-method-30d3
@ohabash did you find a solution?
Using https://imgix.com/ instead :(
had to use www.imageKit.com. ran out of time to solve this
The error might come from this line: https://github.com/invertase/firebase-extensions/blob/ef90ddf3820edb387f25a1968eeeb808d7061d6a/extensions/image-processing-api/functions/src/index.ts#L116
OPTIONS isn't in the list, meaning that preflight CORS request can't succeed. Don't known if calling Image Processing API trigger simple or preflight CORS request though.
I am trying the basic example provided in the docs
The frontend returns this error
google cloud logs show this error