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

CORS Issue #16

Open
itsDZhang opened this issue Mar 22, 2018 · 4 comments
Open

CORS Issue #16

itsDZhang opened this issue Mar 22, 2018 · 4 comments

Comments

@itsDZhang
Copy link

Failed to load https://maps.googleapis.com/maps/api/distancematrix/json?origins=Toronto%2C%20ON%2C%20CA&destinations=Vancouver%2C%20ON%2C%20CA&mode=driving&units=metric&language=en&avoid=&key=: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

How can I solve this issue?

@thari119
Copy link

Ya I'm facing the same issue right now. Any idea how we can fix this.?

@itsDZhang
Copy link
Author

It was a network issue in my case. My network was the school's and it didn't allow apps to receive current location

@romulogarofalo
Copy link

i'm trying to use it on react, but I got CORS, although when I try on browser or Curl, works fine

@obliviga
Copy link

I use the Moesif CORS Google Chrome extension as a workaround for local development.

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

4 participants