chrome 调试跨域iframe

相关链接:https://stackoverflow.com/questions/3102819/disable-same-origin-policy-in-chrome

 https://stackoverflow.com/questions/25098021/securityerror-blocked-a-frame-with-origin-from-accessing-a-cross-origin-frame

干货:直接明

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


For Windows:

  1. Open the start menu
  2. Type windows+R or open "Run"
  3. Execute the following command:

    chrome.exe --user-data-dir="C://Chrome dev session" --disable-web-security

Before Chrome 48, you could just use:






chromium-browser --disable-web-security




awesome thanks. thanks to this, I've been able to launch a webpage as an independent application "C:..chrome.exe" --disable-web-security --user-agent="Android" --user-data-dir="C:/temp-chrome-eng" --app="file:///C:/apps/index.html" – Elvis Ciotti Nov 14 '13 at 13:46

For Windows... create a Chrome shortcut on your desktop.
Right-clic > properties > Shortcut
Edit "target" path :

"C:Program FilesGoogleChromeApplicationchrome.exe" --args --disable-web-security

et voilà :)

原文地址:https://www.cnblogs.com/cbugs/p/8274654.html