Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
mderar opened this Issue · 0 comments

2 participants

@mderar

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.
9d01467
@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.