Disable CORS policy in Chrome
To initiate a new Chrome session with CORS disabled on Windows for testing purposes, you can use either of the following commands:
Launch the Command Prompt (cmd)
terminal and navigate to the directory where the chrome.exe is situated.
Typically, it can be found in either the Program Files or Program Files (x86) directories. Executing the following commands will initiate a new Chrome window with the security policy disabled:
C:\Users\shahpreetk> cd C:\Program Files\Google\Chrome\Application
C:\Program Files\Google\Chrome\Application> chrome.exe --user-data-dir="C:/temp/chrome" -—disable-web-security