Ignoring SSL cert errors
Is it possible to bypass SSL certs (ex in your local environment) by adding
$this->page->send('Security.setIgnoreCertificateErrors', ['ignore' => true]);
in the start() of a request?
Suggestion:
if (isset($this->options['validateCertificate']) && $this->options['validateCertificate'] === false) { $this->page->send('Security.enable'); $this->page->send('Security.setIgnoreCertificateErrors', ['ignore' => true]); $this->page->send('Security.setOverrideCertificateErrors', ['override' => true]); }
Related issues:
- https://bugs.chromium.org/p/chromium/issues/detail?id=801426
- https://bugs.chromium.org/p/chromium/issues/detail?id=721739
Related documentation:
Edited by Kevin Thiels