We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 53b4cee commit 6b66dcbCopy full SHA for 6b66dcb
cypress.json
@@ -1,4 +1,4 @@
1
{
2
"video": false,
3
- "baseUrl": "http://localhost:5001/en-US/"
+ "baseUrl": "http://127.0.0.1:5001/en-US/"
4
}
cypress/plugins/index.js
@@ -17,7 +17,15 @@
17
* @type {Cypress.PluginConfig}
18
*/
19
// eslint-disable-next-line no-unused-vars
20
-module.exports = (_on, _config) => {
+module.exports = (on, _config) => {
21
+ on('before:browser:launch', (browser = {}, args) => {
22
+ if (browser.name === 'chrome') {
23
+ // ^ make sure this is your browser name, you may
24
+ // be using 'canary' or 'chromium' for example, so change it to match!
25
+ args.push('--proxy-bypass-list=<-loopback>')
26
+ return args
27
+ }
28
+ })
29
// `on` is used to hook into various events Cypress emits
30
// `config` is the resolved Cypress config
31
0 commit comments