Chrome: Disable Web Security

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

Leave a Reply

Your email address will not be published. Required fields are marked *