Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
35
rated 0 times [  40] [ 5]  / answers: 1 / hits: 18136  / 11 Years ago, fri, december 20, 2013, 12:00:00

We have absolute paths in template, i.e.:



<link rel=stylesheet href=/media/css/ui.css?v=3 />


When I'm trying to open https page - I get following error:



[blocked] The page at 'https://{{ full_site }}/{{secure_page}}' was loaded over HTTPS, 
but ran insecure content from 'http://{{full_site }}/media/css/ui.css?v=3':
this content should also be loaded over HTTPS.


But path https://{{full_site }}/media/css/ui.css?v=3 is available...



Tell me, why chrome trying to load content over http on https page? And how to force it to load scripts over https on relative paths?



UPD Page loads perfectly in firefox. So this is only chrome issue. All paths are relative.


More From » html

 Answers
11

This could be the reason that your CSS file ui.css may be referring to resources (e.g. images) via background or background-image property which is loading insecure content (Content from HTTP servers)



If you have resources on your site, use Relative Protocol Links like



url(//example.com/images/some_image.png)


Similarly, update your link to use relative protocol link like



<link rel=stylesheet href=//{{full site}}/media/css/ui.css?v=3 />

[#73637] Wednesday, December 18, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
stacie

Total Points: 476
Total Questions: 92
Total Answers: 102

Location: Bosnia and Herzegovina
Member since Tue, Mar 29, 2022
2 Years ago
stacie questions
Fri, Jun 26, 20, 00:00, 4 Years ago
Thu, Jan 23, 20, 00:00, 4 Years ago
Fri, Aug 30, 19, 00:00, 5 Years ago
Fri, Aug 2, 19, 00:00, 5 Years ago
;