google chrome - How to bypass "NET::ERR_CERT_AUTHORITY_INVALID" in PWA when using self-signed certificate? - S

admin2025-04-18  3

I'm running a Progressive Web App locally with a self-signed certificate. When I visit the site in Chrome, I can proceed past the "NET::ERR_CERT_AUTHORITY_INVALID" warning by clicking "Advanced" -> "Proceed".

However, after installing the PWA, I face the same certificate warning, and when I try to click "Proceed" to access the site, it redirects me back to Chrome instead of staying within the PWA. Within the PWA I can't get anywhere except "NET::ERR_CERT_AUTHORITY_INVALID" page.

How can I bypass this?

Additional Information:

  • The certificate is generated by mkcert.
  • I’ve verified that I can bypass the warning in Chrome (browser mode) but not in the PWA.
  • OS: Ubuntu 24.04
  • Chrome: Version 132.0.6834.159 (Official Build) (64-bit)

I've tried:

  1. Running Chrome with chrome --ignore-certificate-errors but it didn't help.
  2. Turn on Allow invalid certificates for resources loaded from localhost on a chrome://flags/#allow-insecure-localhost page. Then I've reinstalled PWA but it didn't resolve the issue.
  3. Set Safe browsing to No Protection
转载请注明原文地址:http://anycun.com/QandA/1744921438a89513.html