hi5dev / google-webfonts

Provides a helper for using Google Webfonts in a Rails application.
MIT License
28 stars 16 forks source link

Error loading fonts over https #10

Closed taimoorq closed 6 years ago

taimoorq commented 7 years ago

When I move this gem to my production server (which is using https) I get the following error:

Mixed Content: The page at 'https://servername.com' was loaded over HTTPS, but requested an insecure stylesheet 'http://fonts.googleapis.com/css?family=Raleway'. This request has been blocked; the content must be served over HTTPS.

Any way to add a flag that makes these requests get sent by https on certain environments?

travishaynes commented 6 years ago

Update to the latest version of the gem. It uses https by default now.