【发布时间】:2010-07-27 20:52:23
【问题描述】:
我们的 asp.net 网站上的登录页面使用 https——而我们几乎所有其他页面都没有。在此登录页面上,IE8 用户会收到“您只想查看安全传送的网页内容吗?”信息。许多用户出于习惯按“是”,这破坏了我们的登录页面。我知道问题源于 ScriptManager 生成的 WebResource.axd 和 ScriptResource.axd 脚本标签。
我已经尝试了所有引用 ScriptResource.axd/WebResource.axd 的方法 - 但无论我做什么,我都会收到相同的 IE8 警告 - 一些示例:
<script src='https://www.mysite.org/ScriptResource.axd?123' type="text/javascript"></script>
<script src=' /ScriptResource.axd?123' type="text/javascript"></script>
<script src=' //www.mysite.org/ScriptResource.axd?123' type="text/javascript"></script>
<script src=' ../ScriptResource.axd?123' type="text/javascript"></script>
这是simple page with no axd script (no IE8 prompt) 和another page with the same markup and a single axd script (produces the IE8 prompt) 的示例。
认为 iis 中可能存在一些奇怪的 axd 文件重定向 - 我什至尝试过 response.redirecting axd 请求以保护 global.asax 中的 url。 Application_BeginRequest 无效。
有没有人知道一种方法来包含由脚本管理器生成的 ScriptResource.axd/WebResource.axd 脚本,这种方式不会触发“您只想查看安全交付的网页内容吗?” IE8 消息?谢谢!
【问题讨论】:
-
This 可能对最终用户有用
标签: asp.net ssl internet-explorer-8 scriptmanager