Skip to content

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

mderar opened this Issue Apr 24, 2013 · 0 comments

2 participants

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
@timwienk timwienk added a commit that closed this issue Apr 3, 2014
@timwienk timwienk Request: Add a note about CORS allowed headers to Request docs.
Also fixes #2494.

Thanks @5HT2A for reporting the docs problem and helping to debug and verify above mentioned issue.
@timwienk timwienk closed this in 9d01467 Apr 3, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.