Blocked by CORS when fetching 'firebase' for web notifications

We have developed a PWA using javascript and have followed the docs to setup web push notifications using firebase. 

Is there something in our firebase console that needs to be enabled or setup to allow CORS.

The error is similar to this:

"Access to fetch at 'https://firebase.googleapis.com/v1alpha/projects/-/apps*****' from origin 'http://localhost:4746' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled."

The app uses javascript and has installed the firebase SDK. 

it pulls the firebase .js files from gstatic using version 9.22.0. 

Any advice is appreciated.

2 REPLIES 2

This forum is for Apigee - API Management platform. You may have more luck getting a response over in the firebase tagged section of cloud hub 

https://www.googlecloudcommunity.com/gc/forums/filteredbylabelpage/board-id/cloud-hub/label-name/fir...

@dknezic  Thank you. I will try that.