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 #5

Open
jaypackard opened this issue Sep 3, 2019 · 1 comment
Open

CORS issue #5

jaypackard opened this issue Sep 3, 2019 · 1 comment

Comments

@jaypackard
Copy link

jaypackard commented Sep 3, 2019

Do you know why I get in the browser when signing up on localhost:8080:
Access to XMLHttpRequest at 'http://localhost:3000/signin' from origin 'http://localhost:8080' 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.

I have this in initializers/cors:
origins 'http://localhost:8080'

@jaypackard
Copy link
Author

Worked with this in Gemfile:
gem 'rack-cors', '0.4.1'

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

1 participant