Error Access-Control-Allow-Origin

Home Forums Use Any Fonts Error Access-Control-Allow-Origin

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #7153
    JCarles
    Guest

    Hi,

    My web page has two languages, the main English language and the Spanish secondary language. I tested your plugin on my test page and it works perfectly in both languages https://test01.saolabrand.com/

    The problem that in my official page does not work in Spanish, I get the following error: CORS Policy: No ‘Access-Control-Allow-Origin’

    https://d2salfytceyqoe.cloudfront.net/wp-content/uploads/2017/02/1213802-errors.png

    How could I solve it?

    Cheers

    #7154
    JCarles
    Guest

    Hi,

    Also i have this code

    <IfModule mod_headers.c>
    <FilesMatch “\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$”>
    Header set Access-Control-Allow-Origin “*”
    </FilesMatch>
    </IfModule>

    But didn’t function

    Cheers

    #7164
    Dinesh
    Keymaster

    Hi JCarles,

    Have you tried enabling the relative path option ? Does that work ?

    Regarding the code in htaccess, can you please make sure you have placed it under the main site ? I think you main site is saolabrand.com and it should be under it.

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Error Access-Control-Allow-Origin’ is closed to new replies.