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

"osmauth.min.js" blocked by CORS #34

Closed
danstowell opened this issue Jul 31, 2019 · 4 comments
Closed

"osmauth.min.js" blocked by CORS #34

danstowell opened this issue Jul 31, 2019 · 4 comments
Labels

Comments

@danstowell
Copy link

Hi - the NotesReview page didn't work for me (nothing happening when I press "Search"). I noticed that I think the reason is my Firefox browser is blocking the loading of osmauth.min.js due to CORS security settings. I believe you need to add a CORS header Access-Control-Allow-Origin?

cors

@danstowell
Copy link
Author

Same on Chromium

cors2

@ENT8R
Copy link
Owner

ENT8R commented Jul 31, 2019

Thank you for reporting the error so detailed 👍!
That's a real strange issue 🤔. A CDN who doesn't put a Access-Control-Allow-Origin=* in their header is not a real CDN 😄. And especially unpkg which is open to anybody should use this header, so I can't understand what triggered the error on your computer. I just tested it, and for me it works fine: There is a Access-Control-Allow-Origin=* in the header of the file and I can see the source code as a response...
What happens on your computer when you open https://unpkg.com/osm-auth@1.0.2/index.js ?

@ENT8R ENT8R added the bug label Jul 31, 2019
@danstowell
Copy link
Author

Thanks for your reply! I think it must have been a temporary issue with the CDN, then - your site now works properly for me, with no changes here...

@ENT8R
Copy link
Owner

ENT8R commented Jul 31, 2019

Alright 👍 I already thought it would be something like that 😄
Nevertheless, thank you for reporting it!

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

No branches or pull requests

2 participants