I\'m working on an ecommmerce project. Parts of the site are HTTP by default. Others, such as the checkout page, are HTTPS by default. On the HTTPS pages I\'m getting this m
Create a schema agnostic url
Change http://fonts.google...
to //fonts.google...
Drop the http:
or https:
from the front, the browser will use whichever schema you're currently using on the site.
You may request resources using
https
fromhttp
, but not the other way round. An alternative to the above solution (and probably best practice) is to just always usehttps
if it's available (which it must be if you're using this style of link, otherwise there no point in it anyway).