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

I am creating a widget for my users and trying to make it work, but I always encounter the X-Domain problem with this header. httpfox gives me - NS_ERROR_DOM_BAD_URI - and in the course of further investigation, I found that it

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

I'm not sure why it is not loading, but I basically call the script, and then I try to grab some html to load it, but it is blocked by the above headers.

How can I get around this problem?

+6
javascript access-control cors cross-domain
source share
2 answers
+5
source share

OK - I think I found the answer. See Usually

http://saltybeagle.com/2009/09/cross-origin-resource-sharing-demo/

seems to provide a way around him

+3
source share

All Articles