Cross-domain font-face issues

后端 未结 4 383
遇见更好的自我
遇见更好的自我 2021-02-04 04:47

please read all of this before commenting.

I\'m currently working on a large website which is hosted on Amazon Web Services (AWS). This allows us to use scalability feat

4条回答
  •  迷失自我
    2021-02-04 05:21

    Try do this:

    On your server you will need to add:

    Access-Control-Allow-Origin
    

    To the header of the font files, so for example if you are using Apache you can add this to the .htaccess:

    
      
        Header set Access-Control-Allow-Origin "*"
      
    
    

    My problem solved with this method.

提交回复
热议问题