Disable cross domain web security in Firefox

后端 未结 8 628
耶瑟儿~
耶瑟儿~ 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:42

    For anyone finding this question while using Nightwatch.js (1.3.4), there's an acceptInsecureCerts: true setting in the config file:

    firefox: {
          desiredCapabilities: {
            browserName: 'firefox',
            alwaysMatch: {
              // Enable this if you encounter unexpected SSL certificate errors in Firefox
              acceptInsecureCerts: true,
              'moz:firefoxOptions': {
                args: [
                  // '-headless',
                  // '-verbose'
                ],
              }
            }
          }
        },

提交回复
热议问题