Answer the question
In order to leave comments, you need to log in
Loss of css code when switching to https, how to fix?
When switching from http to https, many pages began to look incorrect. With http encryption, everything worked great.
How to fix it?
The console outputs the following:
Mixed Content: The page at '<URL>' was loaded over HTTPS, but requested an insecure stylesheet '<URL>'. This request has been blocked; the content must be served over HTTPS.
Answer the question
In order to leave comments, you need to log in
browser blocks http resources on page with https
fix - make your files available via https
When connecting scripts and styles externally, we remove the protocol
like this
<link rel="stylesheet" href="//assets.example.com/style.css"/>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question