Skip to content

Instantly share code, notes, and snippets.

@CharlieGreenman
Created April 11, 2020 22:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CharlieGreenman/2a30d966cb7cfc77bcb14161468a7fbc to your computer and use it in GitHub Desktop.
Save CharlieGreenman/2a30d966cb7cfc77bcb14161468a7fbc to your computer and use it in GitHub Desktop.
module.exports = (on, config) => {
on('before:browser:launch', (browser = {}, args) => {
console.log(config, browser, args);
if (browser.name === 'chrome') {
args.push("--disable-features=CrossSiteDocumentBlockingIfIsolating,CrossSiteDocumentBlockingAlways,IsolateOrigins,site-per-process");
args.push("--load-extension=cypress/extensions/Ignore-X-Frame-headers_v1.1");
}
return args;
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment