Script5 access denied in IE9 in same domain

拜拜、爱过 提交于 2019-12-23 15:44:41

问题


I'm developing a site in django, which uses a jquery multi file upload plugin.

When i register to my site, a confirmation email is sent to my gmail account, i click the activation link and my website is opened in a new tab. I login, then I try to upload a file and it fails in IE9... F12 says "Script5 access denied"

However, if I type the link in the URL address bar instead of clicking the link in my email it works perfectly. It allows my to upload anything I want.

Im testing in a development server, and the host name is http://192.168.0.1:8085

My problem is that when i access my site via the email link, it just doesn't work... i checked the headers and the only thing that changes is that when i open the page from my email link, there is one extra header, HTTP_REFERER = http://192.168.0.1:8085:/activate/16834e18a471d4f654aa763b2b22f203/ but besides this, i cant find anything else that could be causing the problem... and i cant understand why when i type the url it works correctly.

The jquery multiupload plugin im using is: https://github.com/blueimp/jQuery-File-Upload

My script is: http://pastebin.com/2JE8Qrnm

And this is the HTML: http://pastebin.com/fyP0Z4sB


回答1:


hm... what jumps into my mind first:

try to add:

response['p3p'] = 'CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"'

and/or:

response['Access-Control-Allow-Origin'] = '*'

to your response.



来源:https://stackoverflow.com/questions/10980103/script5-access-denied-in-ie9-in-same-domain

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!