在您的服务器上,您需要添加:
Access-Control-Allow-Origin
在字体文件的标题中,例如,如果您使用的是Apache,则可以将其添加到.htaccess中:
<FilesMatch ".(ttf|otf|eot|woff|woff2)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule></FilesMatch>

在您的服务器上,您需要添加:
Access-Control-Allow-Origin
在字体文件的标题中,例如,如果您使用的是Apache,则可以将其添加到.htaccess中:
<FilesMatch ".(ttf|otf|eot|woff|woff2)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule></FilesMatch>