I have a google font / stylesheet being loaded over http, how do I change it to https?
Its causing error messages to crop up on my secure pages like this:
Mixed Content: The page at 'https://www.mydomain.co.uk/customer/account/' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Open+Sans:600italic,300,700,400,600'. This request has been blocked; the content must be served over HTTPS.
Best Answer
You can do it this way:
See src section.
Instead of having font url with
http
put them this way://fonts.gstatic.com/s/opensans/v10/cJZKeOuBrn4kERxqtaUH3VtXRa8TVwTICgirnJhmVJw.woff2
. Here we have omittedhttp:
.This will make sure it runs with
http
andhttps
both.Hope this helps.