2016-09-25 61 views
0

我在Grails应用程序中使用BootStrap,但我面临奇怪的事情,在我的页面中使用HTTP时:http://www.mypage.com Glyphicons工作正常,但是当我使用HTTPS同时采用HTTPhttps://www.mypage.comBootStrap Glyphicons在使用HTTPS协议时不显示

:它们消失前 enter image description here

使用HTTPSenter image description here

我使用美其名曰:

<link href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css" 
rel="stylesheet"> 

任何建议,使使用时工作正常HTTPS

回答

1

尝试使用:

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css" rel="stylesheet"> 

某些HTTP资源可以使用https协议时被阻止。

+0

你的意思是这个答案已经提供?:http://stackoverflow.com/questions/2725523/how-to-include-css-and-js-files-via-https-when-needed;) –

+0

@Marcin C我试着你所提到的,但仍然是同一个问题 – Sherif

+0

@Sherif你难以刷新页面吗? ctrl + f5或类似的从浏览器的缓存中删除错误的引用。 –