How do you get around this Ajax cross site scripting problem on FireFox 3?
Javascript – Access to restricted URI denied code: 1012
ajaxjavascriptjqueryxss
Related Question
- Jquery – How to format a Microsoft JSON date
- Javascript – How to get the children of the $(this) selector
- Javascript – How to know which radio button is selected via jQuery
- Javascript – How to correctly clone a JavaScript object
- Javascript – What does “use strict” do in JavaScript, and what is the reasoning behind it
- Javascript – Preview an image before it is uploaded
- Javascript – How does Access-Control-Allow-Origin header work
- Javascript – Why does the JavaScript code receive a “No ‘Access-Control-Allow-Origin’ header is present on the requested resource” error, while Postman does not
Best Solution
If you're using jQuery it has a callback function to overcome this:
http://docs.jquery.com/Ajax/jQuery.ajax#options
Alternatively you could make your ajax request to a server-side script which does the cross-domain call for you, then passes the data back to your script