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.