Skip to content

Commit 69af7d9

Browse files
committed
Ignore https for HTML load - no input
1 parent 150653c commit 69af7d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

elm/web/html_pw.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ async def _load_html( # pragma: no cover
6767
logger.trace("launching chromium; browser_semaphore=%r",
6868
browser_semaphore)
6969
browser = await p.chromium.launch(**pw_launch_kwargs)
70-
async with pw_page(browser, intercept_routes=True) as page:
70+
page_kwargs = {"browser": browser, "intercept_routes": True,
71+
"ignore_https_errors": True} # no sensitive inputs
72+
async with pw_page(**page_kwargs) as page:
7173
logger.trace("Navigating to: %r", url)
7274
await page.goto(url)
7375
logger.trace("Waiting for load with timeout: %r", timeout)

0 commit comments

Comments
 (0)