-2

Access to XMLHttpRequest at 'https://api.elitedias.com/checkid' from origin 'https://stag.speedyninja.co' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. VM5836:50 POST https://api.elitedias.com/checkid net::ERR_FAILED 403 (FORBIDDEN)

Cors origin error on my js code Please help me. How can I fix this.

Web dev
  • 1
  • 1

1 Answers1

-1

Try this in the .htaccess of the external root folder :

<IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
</IfModule>
Mitali Patel
  • 395
  • 2
  • 9