Heroku and Google Fonts

前端 未结 6 1749
南笙
南笙 2020-12-31 02:06

Why doesn\'t embedding google fonts work on Heroku?

For example:

\' rel         


        
6条回答
  •  执笔经年
    2020-12-31 02:54

    Simply use HTTPS instead of HTTP:

    <%= stylesheet_link_tag "application", 'https://fonts.googleapis.com/css?family=', :media => "all" %>
    

提交回复
热议问题