chrome 调试跨域iframe

时间:2023-03-10 01:08:29
chrome 调试跨域iframe

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

https://*.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 Files\Google\Chrome\Application\chrome.exe" --args --disable-web-security

et voilà :)