Font style of googlefont works on localhost but not in gdrive

Asked

Viewed 143 times

0

The two font styles Sans Narrow and Wire One from google fonts don’t work when I publish to Gdrive, but only work on host location. I’m calling the fonts by the external link call method, not by the font face style. Below is the printscreem of the bug in firebug and where it was to be the source, if anyone can solve the problem I thank youFonte funcionando em local host Erro firebug

1 answer

0

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

Change the call links to the source

<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 error of Mixed content.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.