Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


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

mderar opened this Issue · 0 comments

2 participants


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
@ibolmo ibolmo added this to the 1.5.1 milestone
@timwienk timwienk closed this issue from a commit
@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
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.