Skip to content

Commit a78b21c

Browse files
committed
fix(playwright): disable filesystem access
1 parent 833730a commit a78b21c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

npiai/core/browser/_playwright.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@ async def start(self):
9090
self.browser = await self.playwright.chromium.launch(
9191
headless=self.headless,
9292
channel=self.channel,
93-
args=["--disable-blink-features=AutomationControlled"],
93+
args=[
94+
"--disable-blink-features=AutomationControlled",
95+
"--disable-extensions",
96+
"--disable-file-system",
97+
],
9498
# args=["--disable-gpu", "--single-process"],
9599
)
96100

0 commit comments

Comments
 (0)