Skip to content

Instantly share code, notes, and snippets.

@ModPhoenix
Last active July 29, 2020 08:04
Show Gist options
  • Save ModPhoenix/6f756ea25b85a5876af148fc4c80f149 to your computer and use it in GitHub Desktop.
Save ModPhoenix/6f756ea25b85a5876af148fc4c80f149 to your computer and use it in GitHub Desktop.
Chrome allow CORS requests by disable-web-security

Windows

  1. Kill all chrome processes
TASKKILL F IM chrome.exe
  1. Right click on desktop, add new shortcut. Add the target as
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir="C://Chrome dev session" --disable-web-security --user-data-dir=~/chromeTemp
  1. If you need disable "SameSite by default cookies". Enter the following into your browser location bar and select "Disabled" in the drop-down.
chrome://flags/#same-site-by-default-cookies

OSX

open -n -a /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --args --user-data-dir="/tmp/chrome_dev_test" --disable-web-security

Linux

google-chrome --disable-web-security
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment