-1

I have an issue where the following is being displayed:

Mixed Content: The page at 'https://www.feelhome.se/produkt/fighting-elephants/' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,600italic,600,400italic,300italic,300,200italic,200'. This request has been blocked; the content must be served over HTTPS.

Does anyone have an idea on how I can solve this so it won't appear?

3 Answers3

1

The problems is that the you are loading the fonts using http instead of https if you change the font url to use https you'll be ok.

So you need https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,600italic,600,400italic,300italic,300,200italic,200

instead of http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,600italic,600,400italic,300italic,300,200italic,200

The fonts seam to be loaded from the template.css and bootstrap.css files. Have a look at the attached image.

enter image description here

Search All files

Bobby Tables
  • 2,953
  • 7
  • 29
  • 53
1

A secure page only has https resources (like stylesheets or images). When one or more resources are loaded via http, the security might be comprimised. That is the warning you're getting, you have some http resourcce on a https page.

Some have suggested placing https://example.com in front of everything, I'm going to suggest something else: //example.com, note the lack of https and http. The browser will now add https automatically.

The benefit here is that when you have to switch between the two, you're done with the minimal amount of work. Say you have a site which is allready build and running, and after a time decides to go https... All you have to do is change your htaccess and done, all your resources are prepared.

Martijn
  • 15,791
  • 4
  • 36
  • 68
  • So you mean having a relative link and not hard coded? For example in @tobys answer above I use: `//fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,600italic,600,400italic,300italic,300,200italic,200` instead of `http://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700,600italic,600,400italic,300italic,300,200italic,200` – Robin Lundgren Jul 17 '16 at 12:52
  • Yes that is what I mean. That is not relative though, relative is when you link to something on your own domain and then link without the domain (eg `/images/`) – Martijn Jul 17 '16 at 18:10
0

The content you have could be insecure, so you need to load it with https instead of http.

Rootel
  • 149
  • 16