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 ?
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.
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.
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.
It's Access-Control-Request-Headers
with "s
"
https://developer.mozilla.org/en/docs/HTTP/Access_control_CORS#Access-Control-Request-Headers
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With