Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox Cross Domain Request

I need to make a cross domain request from a script that runs in firefox (it's just for development purposes).

Can this be achieved? maybe modifying the about:config keys?

Thanks!

like image 411
Pablo Fernandez Avatar asked Mar 09 '10 17:03

Pablo Fernandez


People also ask

How do I enable cross-origin requests in Firefox?

CORS or Cross Origin Resource Sharing is blocked in modern browsers by default (in JavaScript APIs). Installing this add-on will allow you to unblock this feature. Please note that, when the add-on is added to your browser, it is in-active by default (toolbar icon is grey C letter).

How do I get rid of CORS error in Firefox?

In Firefox, the preference that disables CORS is content. cors. disable . Setting this to true disables CORS, so whenever that's the case, CORS requests will always fail with this error.

How do I get rid of cross-origin request blocked?

Open a network tab in your console. In the response header look for the Access-Control-Allow-Origin header. If it does not exist then add it as a middleware in the way we discussed above. If it does exist then make sure there is no URL mismatch with the website.


1 Answers

There is a great post by James Padolsey on how to to cross domain requests using jQuery, But the post also has very good resources. There need to be some tweaking to be done on the other server to allow cross domain calls using crossdomain.xml

like image 106
Teja Kantamneni Avatar answered Oct 23 '22 02:10

Teja Kantamneni