Skip to content

Commit 36eccd6

Browse files
authored
Playwright apply bypassCSP to contextOptions (#3865)
1 parent 3425409 commit 36eccd6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/helper/Playwright.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ class Playwright extends Helper {
482482
contextOptions.httpCredentials = this.options.basicAuth;
483483
this.isAuthenticated = true;
484484
}
485+
if (this.options.bypassCSP) contextOptions.bypassCSP = this.options.bypassCSP;
485486
if (this.options.recordVideo) contextOptions.recordVideo = this.options.recordVideo;
486487
if (this.storageState) contextOptions.storageState = this.storageState;
487488
if (this.options.userAgent) contextOptions.userAgent = this.options.userAgent;

0 commit comments

Comments
 (0)