Disable cross domain web security in Firefox

后端 未结 8 638
耶瑟儿~
耶瑟儿~ 2020-11-29 00:24

In Firefox, how do I do the equivalent of --disable-web-security in Chrome. This has been posted a lot, but never a true answer. Most are links to add-ons (some

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-29 00:47

    While the question mentions Chrome and Firefox, there are other software without cross domain security. I mention it for people who ignore that such software exists.

    For example, PhantomJS is an engine for browser automation, it supports cross domain security deactivation.

    phantomjs.exe --web-security=no script.js
    

    See this other comment of mine: Userscript to bypass same-origin policy for accessing nested iframes

提交回复
热议问题