Google Fonts giving: No 'Access-Control-Allow-Origin' header is present on the requested resource

前端 未结 1 1939
天涯浪人
天涯浪人 2020-12-18 00:47

I\'m trying to use a google font \'Oswald\'. When i embed it into my page in the recommended way:



        
相关标签:
1条回答
  • 2020-12-18 01:19

    Turns out it was a conflict with prefixfree

    Solution was to add "data-noprefix" to the link tag, like so:

    <link href='http://fonts.googleapis.com/css?family=Oswald:400,300,700' rel='stylesheet' type='text/css' data-noprefix>
    
    0 讨论(0)
提交回复
热议问题