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

Optional CSRF Tokens #36

Open
cheljoh opened this issue Sep 26, 2016 · 0 comments · May be fixed by #39
Open

Optional CSRF Tokens #36

cheljoh opened this issue Sep 26, 2016 · 0 comments · May be fixed by #39

Comments

@cheljoh
Copy link

cheljoh commented Sep 26, 2016

I attempted making some AJAX requests using jQuery to endpoints other than my own API, and I got this error:

Request header field X-CSRF-Token is not allowed by Access-Control-Allow-Headers in preflight response.

I noticed the code in ember-rails-addon-csrf.js adds the CSRF headers to all AJAX requests that use jQuery.

It would be nice if there was a way to make the CSRF headers optional so I can make AJAX requests to Google, etc. Thanks!

@kobsy kobsy linked a pull request Mar 6, 2019 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant