We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
ember-rails-addon-csrf.js
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!
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
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!
The text was updated successfully, but these errors were encountered: