mirror of
https://github.com/GH05TCREW/pentestagent.git
synced 2026-03-07 22:33:38 +00:00
Allow ignoring SSL errors when browsing HTTPS webs with self-signed certificates (throws error otherwise).
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user