Allow ignoring SSL errors when browsing HTTPS webs with self-signed certificates (throws error otherwise).

This commit is contained in:
famez
2026-01-27 21:22:14 +01:00
parent 9a6861bce3
commit 432e81b283

View File

@@ -571,7 +571,8 @@ class LocalRuntime(Runtime):
self._playwright = await async_playwright().start()
self._browser = await self._playwright.chromium.launch(headless=True)
self._browser_context = await self._browser.new_context(
user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"
user_agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
ignore_https_errors=True
)
self._page = await self._browser_context.new_page()