CORS policy

  • In Progress
    Posted in: Arcane  
  • Member
    knoepert
    February 3, 2018 at 10:22 am #108428

    Good morning @zorz.

    You properly have seen them, the annoying CORS errors that causing other java scripts to fail on the google chrome browser. This happens as every single WordPress must be a https these days.

    How to fix this?

    Adding this in the .htaccess doenst only fix it, it makes the site a bit faster as well.

    # Allow access from all domains for webfonts.
    # Alternatively you could only whitelist your
    # subdomains like “subdomain.example.com”.
    <IfModule mod_headers.c>
    <FilesMatch “\.(ttf|ttc|otf|eot|woff|font.css|css)$”>
    Header set Access-Control-Allow-Origin “*”
    </FilesMatch>
    </IfModule>

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.