【发布时间】:2012-09-21 17:22:00
【问题描述】:
我在页面中有一个脚本标签<script type="text/javascript" src="http://hostname.com/rootname/dynamicScript?basedOnTheParameter=true"></script>。
它在 Firefox 中运行良好,但 chrome 说
[阻止]https://hostname.com/index.jsp 的页面运行来自http://hostname.com/rootname/dynamicScript?basedOnTheParameter=true 的不安全内容。
在 IE 中,安全消息带有两个 2 按钮 yes 或 no,如果我选择是,则脚本无法访问,但脚本在 no 按钮的情况下有效。
谁能解释一下为什么会发生这种情况以及解决方案是什么?
【问题讨论】:
标签: javascript internet-explorer google-chrome proxy cross-domain