admin管理员组

文章数量:1289603

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 ?

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 ?

Share Improve this question edited Nov 20, 2012 at 6:03 Dan D. 74.7k15 gold badges110 silver badges127 bronze badges asked Apr 30, 2010 at 19:00 TomTom 991 gold badge1 silver badge4 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 5

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

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

本文标签: javascriptAccessControlRequestHeaderxrequestedwithStack Overflow