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

Request.JSON: "X-Request" overrides "X-Requested-With" header #2494

Closed
mderar opened this issue Apr 24, 2013 · 0 comments
Closed

Request.JSON: "X-Request" overrides "X-Requested-With" header #2494

mderar opened this issue Apr 24, 2013 · 0 comments
Labels
Milestone

Comments

@mderar
Copy link

mderar commented Apr 24, 2013

If server returns the "X-Request" after "X-Requested-With" in the "Access-Control-Allow-Headers" the "X-Requested-With" header will be ignored, thus browser will return error "X-Requested-With is not allowed by Access-Control-Allow-Headers".

My workaround was to comment out "X-Request: JSON" in the "Request.JSON.initialize()".

@ibolmo ibolmo added the bug label Mar 3, 2014
@ibolmo ibolmo added this to the 1.5.1 milestone Mar 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants