来自Apache的字体错误

时间:2015-10-26 22:38:48

标签: .htaccess apache2 controls

我收到控制台错误

Font from origin 'http://mycssandjsfiles.myurl.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://myurl.com' is therefore not allowed access.

到目前为止我已经完成的步骤:

sudo a2enmod headers

将两个目录添加到我的.htaccess文件

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

在终点站:

sudo service apache2 restart

我不确定我还需要做什么。任何想法?

0 个答案:

没有答案