0

There are many questions about "Access-Control-Allow-Origin" which I applied in htaccess as follows

Header set Access-Control-Allow-Origin "*"

After applying that I am facing following error:

"Access to XMLHttpRequest at 'http://XXX.XXX.XXX.XXX/XXX/rest/V1/categories/3357' from origin 'http://localhost:8100' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status."

I also applied following lines:

Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS"

Header always set Access-Control-Allow-Headers "X-Accept-Charset,X-Accept,Content-Type"

Could you please help?

  • Is there anybody to write at least a comment? – Tanvir Nov 15 '18 at 12:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.