Chrome: Disable Web Security
Code Workshop
7/30/2018
Share with
How to disable Chrome's web security for local development testing. The correct flag, why you'd use it, and when NOT to use it.
Pretty often when debugging a mobile app in a web browser, we need to disable access control allow origin, OPTIONS checks, and SSL.
Creating a new Chrome shortcut on the desktop with the following flags will allow you to run Chrome without web security.
Mac:
open -n -a Google\ Chrome --args --disable-web-security --user-data-dir=/Users/[you]/chromedev/
Windows:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir="C:/chromedev" --disable-web-security