-
Notifications
You must be signed in to change notification settings - Fork 356
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
No 'Access-Control-Allow-Origin' header is present on the requested resource #2510
Comments
Hello @danish-din, thanks for contributing to the Password Pusher community! We will respond as soon as possible. |
Hi @danish-din - oops & good find. I've updated the documentation to more clearly state that you have to go to the main site (pwpush.com) first. https://docs.pwpush.com/docs/json-api/#javascript Thanks for reporting! |
Is it not possible to add the header so i can run it anywhere in chrome. |
Ah ok - give me a bit to dig into the details & security implications. |
@danish-din Just an update that I haven't forgotten about this. It's EOD here but this is on my list for tomorrow. |
Thanks for your patience @danish-din! I've enabled the CORS header on I tested it myself in the browser console from various other sites and it works here. Let me know if it works for you! |
Awesome, thank you! So far so good, will continue to build my extension and see how it goes! |
🐛 Bug Report
Attempted to follow this but returned an error
Access to fetch at 'https://pwpush.com/p.json' from origin 'https://docs.pwpush.com' 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
🔬 How To Reproduce
Steps to reproduce the behavior:
Go on Chrome Console and use Javascript snippit provided in guide
Where are you running/using Password Pusher?
If applicable, what version of Password Pusher?
Screenshots
📈 Expected behavior
Return valid API response
📎 Additional context
This was working a few hours ago but stopped working
The text was updated successfully, but these errors were encountered: