Skip to content

Commit ba8b8d8

Browse files
committed
fix: remove unnecessary security-disabling Puppeteer flags
- Removed --disable-web-security flag that bypasses CORS and CSP - Removed --no-sandbox flag that disables Chrome's security sandbox - Removed --disable-setuid-sandbox flag that weakens process isolation These flags were not necessary for resolving the URL loading timeout issues and introduced significant security risks. The timeout issues are better addressed through the increased timeouts and retry logic already in the PR.
1 parent 8e3f9bb commit ba8b8d8

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/services/browser/UrlContentFetcher.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,10 @@ export class UrlContentFetcher {
5252
this.browser = await stats.puppeteer.launch({
5353
args: [
5454
"--user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36",
55-
"--no-sandbox",
56-
"--disable-setuid-sandbox",
5755
"--disable-dev-shm-usage",
5856
"--disable-accelerated-2d-canvas",
5957
"--no-first-run",
60-
"--no-zygote",
6158
"--disable-gpu",
62-
"--disable-web-security",
6359
"--disable-features=VizDisplayCompositor",
6460
],
6561
executablePath: stats.executablePath,

0 commit comments

Comments
 (0)