Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firestore emulator having problem with CORS. #2550

Closed
gel-prog opened this issue Aug 14, 2020 · 2 comments
Closed

Firestore emulator having problem with CORS. #2550

gel-prog opened this issue Aug 14, 2020 · 2 comments

Comments

@gel-prog
Copy link

gel-prog commented Aug 14, 2020

[REQUIRED] Environment info

firebase-tools: 8.7.0

Platform: Windows/WSL

[REQUIRED] Test case

  1. Create a new project with firebase init.
  2. Enable functions and firestore
  3. Run firebase:emulators:start
  4. Go to http://localhost:4000/firestore and create a document

[REQUIRED] Steps to reproduce

  1. Create a new project with firebase init.
  2. Enable functions and firestore
  3. Run firebase:emulators:start
  4. Go to http://localhost:4000/firestore and create a document

[REQUIRED] Expected behavior

Should be able to create and see the newly created document.

[REQUIRED] Actual behavior

Getting errors when trying to fetch the new document.

Failed to load resource: net::ERR_CONNECTION_REFUSED
http://localhost:8080/v1/projects/myProject/databases/(default)/documents:listCollectionIds

Seems to be a problem given CORS. If I use Firefox instead of Chrome:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:8080/v1/projects/myProject/databases/(default)/documents:listCollectionIds. (Reason: CORS request did not succeed).
@google-oss-bot
Copy link
Contributor

This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.

@samtstern
Copy link
Contributor

@gel-prog I believe this is a duplicate of this known issue: firebase/firebase-tools-ui#332

Please follow along over there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants