and commited on
Commit
96ca549
1 Parent(s): 495f8f5
Files changed (1) hide show
  1. index.mjs +3 -1
index.mjs CHANGED
@@ -122,7 +122,9 @@ async function evaluate(url, code) {
122
  await locks.request('playwright_browser', async lock => {
123
  browser = globalThis.state.browser = await chromium.launch();
124
  context = globalThis.state.context = await browser.newContext({
125
- javaScriptEnabled: true
 
 
126
  }/*devices['iPhone 11']*/);
127
  });
128
  }
 
122
  await locks.request('playwright_browser', async lock => {
123
  browser = globalThis.state.browser = await chromium.launch();
124
  context = globalThis.state.context = await browser.newContext({
125
+ javaScriptEnabled: true,
126
+ args: ['--disable-web-security'] //https://github.com/microsoft/playwright/issues/17631
127
+ bypassCSP: true,
128
  }/*devices['iPhone 11']*/);
129
  });
130
  }