Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cypress: Invalid certificate issue for https website [closed]

Tags:

cypress

The browser reports that the connection is insecure, so the certificate hasn't loaded correctly. However, then manually opening the website it loads correctly.

Can anyone tell me how to fix Invalid certificate issue, It's result in to launching the wrong URL.

I tried with "chromeWebSecurity": false in my cypree.json, but no luck.

Please help me to solve this issue.

like image 534
RajuK Avatar asked Aug 16 '26 06:08

RajuK


1 Answers

I haven't done this myself, but Cypress docs say that it's expected: You'll notice Chrome display a warning that the 'SSL certificate does not match'. This is normal and correct.

Note, that Cypress allows you to optionally specify CA / client certificate

https://docs.cypress.io/guides/guides/web-security#Examples-of-what-Cypress-does-under-the-hood.

So if the fake Cypress certificates are causing issues for you, you can try supplying your own certificates.

like image 68
Alex Shleifman Avatar answered Aug 18 '26 18:08

Alex Shleifman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!