【发布时间】:2015-08-04 05:56:25
【问题描述】:
“混合内容:'https://mywebsite/user/signin?ReturnUrl=%2f' 处的页面通过 HTTPS 加载,但请求了不安全的样式表 'http://fonts.googleapis.com/css?family=Raleway:300,200,100'。此请求已被阻止;内容必须通过 HTTPS 提供。”
在我的 head 标签中,我有这些链接,
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,400italic,700,800' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Raleway:100' rel='stylesheet' type='text/css'>
与其使它们成为https,是否有解决方案来确定http或https并动态更改这些链接?听起来是一个非常简单的问题。
【问题讨论】:
标签: asp.net-mvc-4 https