Mixed Content Page: requested an insecure stylesheet error

前端 未结 6 1227
死守一世寂寞
死守一世寂寞 2020-12-29 03:59

I have a website working on it. when i open any page with http:// protocol, every thing is loaded correctly, but when i try to load the page with https protocol, the page lo

6条回答
  •  悲&欢浪女
    2020-12-29 04:06

    If you are able to serve CSS etc over HTTPS, the best solution is to use // as the scheme for asset URLs.

    That means "use the same scheme (sometimes called protocol) as the parent document", i.e. use https if the page uses https. For example:

    
    
    

提交回复
热议问题