I Need to do cross domain Ajax request - Here is my code
$.ajax(
{
url: redirectURL,
data: $('#login-container form').serialize() + querystring,
type: 'post',
cache: false,
dataType: 'jsonp',
jsonp: 'jsonp_callback',
});
----------
Error: [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: "http://testsite/assets/scripts/jquery-1.3.2.js Line: 19"]
Source File: http://testsite/assets/scripts/jquery-1.3.2.js
Line: 19
I have checkout the following links too -
[Access to restricted URI denied code: 1012][1]
$.ajax(
{
url: redirectURL+'?callback=?',
data: $('#login-container form').serialize() + querystring,
type: 'post',
cache: false,
dataType: 'html' });
I have tried Callback in url too .
I had already seen all link in stackoverflow regarding this issue.. but not able to overcome this thing
Can anyone please help and tell me how to overcome !!
Thanks
[1]: https://stackoverflow.com/questions/51283/access-to-restricted-uri-denied-code-1012%5D%5B1%5D
以上就是Access to restricted URI denied" code: "1012 - Cross domain Ajax request的详细内容,更多请关注web前端其它相关文章!