2
我从旧的SecureWebPages升级,通过web.config自动切换Http和Https内容。资源不从Https自动加载 - SecuritySwitch
一些奇怪的原因,有喜欢的内容:
<link type="text/css" href="assets/css/style.css" rel="stylesheet" />
从相应的HTTPS位置不再自动加载。谷歌浏览器中的控制台告诉我:
The page at https://website.com/UserAccess.aspx ran insecure content from http://website.com/assets/css/style.css.
当我使用较旧的SecureWebPages时,此行为不存在。在过去,上述CSS语句正常工作没有任何错误。
我的web.config:
<securitySwitch mode="RemoteOnly">
<paths>
<add path="~/Register.aspx"/>
<add path="~/SSL.Master"/>
</paths>
有什么毛病我的配置?请指教。谢谢!