-
Notifications
You must be signed in to change notification settings - Fork 18
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 error when I load from local dev server #2
Comments
Have you enabled CORS permissions for your userscript? (You can do so by editing |
Didn't help. Both FF and Chrome show the same error. I'll keep digging. Thanks! |
First I tried After struggling for few hours, finally the CORS Unblock plugin allowed a successful call to the dev server. Phew! Or use ModHeader to set the response header What puzzles me is that I did not need to add Thanks for the help! |
@amaharana CORS Unblock works just fine!! But how do you solve this in production? As far as I understand this is just useful in development. I'd appreciate your help! |
The project builds fine and the dev server starts as expected. I have the react-userscripts-dev.user.js installed but console shows a CORS error when I load Google.
How do you handle the CORS issue while running the dev server locally within Google's page context? I am probably doing something very silly!
The text was updated successfully, but these errors were encountered: