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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -