在IE9 Script5访问被拒绝在同一个域中 [英] Script5 access denied in IE9 in same domain

查看:176
本文介绍了在IE9 Script5访问被拒绝在同一个域中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不是一个JavaScript专家,所以请裸与我:)

Im not a javascript expert, so please bare with me :)

我已经广泛地搜索了一个解决方案,但到目前为止,我没有发现,只是说,我做我的家庭作业:)

I have widely searched for a solution for this but so far i found none, just saying that i did do my homework :)

即时通讯开发一个网站在Django,它使用jQuery的多文件上传插件。

Im developing a site in django, which uses a jquery multi file upload plugin.

在我注册到我的网站,确认电子邮件发送到我的Gmail帐户,我点击激活链接,我的网站在新标签页中打开。我登录,然后我尝试上载的文件,也未能在IE9 ... F12说:Script5访问被拒绝

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"

但是...如果我输入的URL地址栏中的链接,而不是点击我的电子邮件中的链接它完美的作品。它可以让我上传任何我想要......

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...

林测试在开发服务器,主机名是 http://192.168.0.1:8085

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

我的问题是,当我通过电子邮件链接访问我的网站,它只是不工作...我检查了头和改变是,当我从我的电子邮件中的链接打开的页面上,有是唯一一个额外的头, HTTP_REFERER = http://192.168.0.1:8085:/activate/16834e18a471d4f654aa763b2b22f203/ ,但除此之外,我找不到其他任何可能会造成问题。 ..我无法理解为什么当我键入URL能够正常工作。

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.

使用jQuery multiupload插件IM是: https://github.com/blueimp/jQuery-File-Upload

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

我的脚本是: http://pastebin.com/2JE8Qrnm

这是HTML: http://pastebin.com/fyP0Z4sB

如果您需要更多的信息,请让我知道:)

If you require more info, please let me know :)

推荐答案

陛下...什么跳进我的脑海里第一:

hm... what jumps into my mind first:

尝试添加:

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

和/或

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

您的回复。

这篇关于在IE9 Script5访问被拒绝在同一个域中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆