I had been developing a website and had disabled web security to bypass CORS through the following command
chrome.exe --disable-web-security --user-data-dir=/path/to/foo
After successfully developing the website, I uploaded it to my domain but got stuck with the CORS Error. I have tried adding "Access-Control-Allow-Origin": "*", but had no luck.
I can assume CORS error for localhost, but cannot understand why the error persists in my domain?
XMLHttpRequest cannot load https://xxx-xxx.xxxxx.xxxxx.xxxxx.com/. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://xxxxx.xxxxx.com' is therefore not allowed access.