我想在我的Tumblr上使用从字体铸造厂购买的自定义字体。该字体铸造厂使用的方法是@font-face。我将文件(.eot、.svg、.ttf和.woff)上传到了我的服务器,链接了样式表,并在我的CSS中添加了正确的属性。我允许从我的服务器热链接到我的Tumblr地址。但这也没有起作用。这里的另一个用户建议直接将文件上传到Tumblr上,但我仍然在控制台中收到以下错误信息:
(index):1 Font from origin 'http://static.tumblr.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://mysite.tumblr.com' is therefore not allowed access.
我不知道如何更改我的服务器上的跨域设置,而且这不是我的个人服务器,所以我没有权利进行此类更改。
有经验在Tumblr上使用自定义字体的人请分享最佳方法。
谢谢。
(index):1 Font from origin 'http://static.tumblr.com' has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://mysite.tumblr.com' is therefore not allowed access.
我不知道如何更改我的服务器上的跨域设置,而且这不是我的个人服务器,所以我没有权利进行此类更改。
有经验在Tumblr上使用自定义字体的人请分享最佳方法。
谢谢。
base64
编码:https://dev59.com/oWzXa4cB1Zd3GeqPQzDe - mikedidthis