fausto94

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by fausto94

  1. On 12/5/2017 at 8:46 PM, Tony said:

    <FilesMatch "\.(gif|png|jpe?g|svg|svgz|ico|webp)$">

    SetEnvIf Origin ":" IS_CORS
    Header set Access-Control-Allow-Origin "*" env=IS_CORS
    </FilesMatch>

    <FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css|css|woff2)$">
    Header set Access-Control-Allow-Origin "*"
    </FilesMatch>

    tried adding js but nothing.. Thank you for trying, I'll check something else for Litespeed

     

  2. Hello,

    I'm trying to perform CORS requests but everytime I try I face this error:

    Cannot load "services provider site". Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'my domain' is therefore not allowed access.

    I tried modifying the js code of my site, I tried modifying the .htacces but nothing. I entered the Access-Control-Allow-Origin in many different ways. Is there a way to modify the server settings and configure the requests header? How can I modfy my requests' header?

    Thank you very much for your help