Access to restricted URI denied" code: "1012 - Cross domain Ajax request

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前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » jQuery 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏