.htaccess Apache上的源字体错误

.htaccess Apache上的源字体错误,.htaccess,apache2,controls,.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 n

我得到控制台错误

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
添加到my.htaccess文件的两个目录中

Header set Access-Control-Allow-Origin "*"
在终端:

sudo service apache2 restart
我不知道我还需要做什么。有什么想法吗