Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access-Control-Request-Header: - x-requested-with

I am building a widget for my users and trying to get it working however I keep running into a X-Domain issue with this header. httpfox gives me - NS_ERROR_DOM_BAD_URI - and on further investigation I find that its

Access-Control-Request-Method:  GET
Access-Control-Request-Header:  x-requested-with

I am not sure why its not loading but I basically call a script and then I am trying to grab some html to load it but it gets blocked with the above headers.

How can I get around this prob ?

like image 787
Tom Avatar asked Apr 30 '10 19:04

Tom


People also ask

What is header x-requested-with?

The X-Requested-With is a request header that a user agent may use to store information about the creation of the request such as client information, method used. Note that the X-Requested-With cannot be added to a cross domain request without the consent of the server via CORS.

What are Access-Control allow headers?

The Access-Control-Allow-Headers response header is used in response to a preflight request which includes the Access-Control-Request-Headers to indicate which HTTP headers can be used during the actual request. This header is required if the request has an Access-Control-Request-Headers header.

What does X mean in HTTP headers?

X-headers are fields in the request HTTP header beginning with an X. Put simply. These fields are kind of non-standard or proprietary add-ons to the regular fields in the HTTP header.


1 Answers

It's Access-Control-Request-Headers with "s"

https://developer.mozilla.org/en/docs/HTTP/Access_control_CORS#Access-Control-Request-Headers

like image 52
powtac Avatar answered Sep 19 '22 14:09

powtac