Googlefont font style works on localhost but not on gdrive

0

The two font styles Sans narrow and Wire One of google fonts do not work when I publish to Gdrive, but only works on a local host. I'm calling sources by external link call method, not by font face style. Below is the error printscreem on firebug and where it was to be the source, if someone can solve the problem I thank

    
asked by anonymous 21.05.2015 / 21:19

1 answer

0

You are encountering a mixed content error (CORS) - in your case, loading dependencies via HTTP from a page loaded via HTTPS.

Change the call links to the

<link href='http://fonts.googleapis.com/css?family=tipo' rel='stylesheet' type='text/css'>

for

<link href='//fonts.googleapis.com/css?family=tipo' rel='stylesheet' type='text/css'>

Excluding the protocol specification ( HTTP / HTTPS ). The browser will then decide which protocol to use from the protocol used to load the home page, thus avoiding the mixed content error.     

21.05.2015 / 21:27