Skip to content

Commit

Permalink
♻️ refactor: ChromeDriver 옵션 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
seoshinehyo authored Feb 9, 2025
1 parent 0180905 commit 91d0667
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private static WebDriver getWebDriver() {
options.addArguments("--headless"); // 백그라운드 실행 (UI 렌더링 생략)
options.addArguments("--disable-gpu"); // GPU 사용 X
options.addArguments("--no-sandbox"); // 샌드박스 모드 비활성화(Docker 환경에서 크롬 드라이버 실행에 필요)
options.addArguments("--disable-dev-shm-usage"); // /dev/shm 사용 비활성화(Docker 환경에서 크롬 크래시 문제 해결)
// options.addArguments("--disable-dev-shm-usage"); // /dev/shm 사용 비활성화(Docker 환경에서 크롬 크래시 문제 해결)
options.addArguments("--ignore-ssl-errors=yes");
options.addArguments("--ignore-certificate-errors"); // SSL 차단 대비
// options.addArguments("--remote-allow-origins=*"); // CORS 대비
Expand All @@ -95,4 +95,4 @@ private static WebDriver getWebDriver() {
//// options.addArguments("--remote-allow-origins=*"); // CORS 대비
// return new ChromeDriver(options);
// });
}
}

0 comments on commit 91d0667

Please sign in to comment.