Allow to ignore certificate errors during navigation
See original GitHub issueThere should be a capability to ignore certificate errors during navigation. See https://github.com/GoogleChrome/puppeteer/issues/66 for proposal and https://github.com/cyrus-and/chrome-remote-interface/issues/183 for original discussion.
For example, we can add ignoreSSL
navigation option:
page.navigate('https://example.com', { ignoreSSL: true })
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:7 (6 by maintainers)
Top Results From Across the Web
ignore-certificate-errors + headless puppeteer+google cloud
The --ignore-certificate-errors-spki-list actually accepts a whitelist of public key hashes ignore certificate-related errors.
Read more >Certificate Error Navigation Blocked: What That Means and ...
How to Fix Certificate Error Navigation Blocked · Open the Internet Properties window. · Select the Advanced tab. · Look through the table...
Read more >7 Ways to Fix Certificate Errors in Microsoft Edge [2022 Guide]
4. Disable certificate address mismatch warnings · Press Windows + S , search for Internet Options, and then open it.
Read more >Auto ignore certificate errors and DON'T proceed in Fiddler
I know I can go into Tools --> Options --> HTTPS --> and check Ignore Server Certificate errors (unsafe) - but that is...
Read more >How to Handle SSL Certificate in Selenium WebDriver - Guru99
For handling SSL error in Chrome, we need to use desired capabilities of Selenium Webdriver. The below code will help to accept all...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’d urge it be more tedious to ignore per navigation since you really shouldn’t be ignoring problems like that. Even in a test suite, it’s not something to encourage.
More details on this. The certificates behave a little surprising - once a certain certificate error was “ignored” via protocol’s
Security.handleCertificateError
, the certificate would not trigger any errors in future.This would result in inability to do
Page.setIgnoreHTTPSErrors(false)
, which causes the test failure in the #176.Upstream bug: https://bugs.chromium.org/p/chromium/issues/detail?id=751204. We spent half a day with @allada debugging the issue but it didn’t get us anywhere.
To move on with this, since there’s no practical need to do
setIgnoreHTTPSErrors(false)
, we can have a browser option to ignore HTTPS errors: