firebase / firebase/quickstart-js

Unable to retrieve notification token due to unsupplied origin

Open
#257 2 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
5.4k
Forks
3.7k
Avg merge
2d 13h
Merged PRs (30d)
6

Description

I'm running the Firebase Cloud Messaging example and caught up with this error:

> Failed to load https://fcm.googleapis.com/fcm/connect/subscribe: The 'Access-Control-Allow-Origin' header has a value 'https://localhost:8081' that is not equal to the supplied origin. Origin 'http://localhost:8081' is therefore not allowed access. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

Has anyone encountered the same issue and figured out how to solve it? Many thanks.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.