javascript - Disable same origin policy in Chrome -


is there way disable same origin policy on google's chrome browser?

this strictly development, not production, use.

close chrome (or chromium) , restart --disable-web-security argument. tested , verified can access contents of iframe src="http://google.com" embedded in page served "localhost" (tested under chromium 5 / ubuntu). me exact command was:

note : kill chrome instances before running command

chromium-browser --disable-web-security --user-data-dir 

the browser warn "you using unsupported command line" when first opens, can ignore.

from chromium source:

// don't enforce same-origin policy. (used people testing sites.) const wchar_t kdisablewebsecurity[] = l"disable-web-security"; 

before chrome 48, use:

chromium-browser --disable-web-security 

Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -