1

I have a CMS which uses tinymce with elfinder. On the computer of one of my clients elfinder wont load. I checked it on his computer and the only thing I can find is this error:

Font from origin has been blocked from loading by Cross-Origin Resource Sharing policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin is therefore not allowed access.

It is a local file on the server and I already added this to the .htaccess file in the root:

<IfModule mod_headers.c>    
    Header add Access-Control-Allow-Origin "*" 
</IfModule>

What should I do? There are errors in the elfinder code because this file doesn't load.

1
  • Can you give us a link to the site so we can test it? Jan 7, 2015 at 11:10

1 Answer 1

1

In your .htaccess file, try:

<FilesMatch ".(eot|svg|otf|ttf|woff)">
    Header set Access-Control-Allow-Origin "*"
</FilesMatch>
1
  • it's a javascript file that wont load, someone changed my title sorry Jan 8, 2015 at 11:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.