cypress: Cypress invalid proxy certificate affects disk cache
Current behavior:
Information that certificate error is purely cosmetic problem as specified here docs.cypress.io/faq/questions/using-cypress-faq.html is misleading.
Chrome, as reported here bugs.chromium.org/p/chromium/issues/detail?id=110649 ignores http caching when any error with ssl certificate occurs. This means that the application under the test is affected and not behaving as intended (http caching is fully disabled, app load time can be significantly slower…).
Desired behavior:
- Inform about this potential problem in FAQ
- Maybe inform that this problem can be resolved by importing
CypressProxyCAfromcy/production/proxy/certs/ca.pemto the Trusted Root Certification Authority store
Test code to reproduce
https://github.com/jsantha/cypress-invalid-cert
Versions
Chrome from version ~16 to actual (81) Windows 10 Cypress 4.5.0
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 5
- Comments: 26 (6 by maintainers)
@valter11111 I’ve just tried this workaround again for latest cypress version and it still works, follow these steps:
AppData/Roaming/Cypress/cy/production/proxy/certs/ca.pemI agree with the original post, this is not only the cosmetic problem. Chromium browsers also block webRTC access (media devices are disabled) if there is “Not secure” connection.
Using Cypress 7.3
That’s the final command we use as a workaround in our CI:
Are there chances to add an option
--auto-import-cato cypress ?~/.config/Cypress/cy/production/proxy/certs/ca.pemI’ve recently migrated from Cypress
v7.xtov9.7.0and this issue (ERROR: No matching issuer found) happens on my CI only (Azure, Ubuntu). Sometimes it’s NOT happening.I read a few threads and it seems issue was fixed in
v10.2.0which I anticipate to upgrade yet. @MichaelDimmitt refers here: https://github.com/cypress-io/cypress/discussions/22128But I also see that @shammlo refers above to
v10.8.0as also not working version.@jsantha, as author of this issue which is still open in Jan-2023, how about you?
@flotwig, my Cypress version is
"cypress": "^10.8.0",and im still having this error, still receiving “Not secure”.