question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cypress invalid proxy certificate affects disk cache

See original GitHub issue

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:

  1. Inform about this potential problem in FAQ
  2. Maybe inform that this problem can be resolved by importing CypressProxyCA from cy/production/proxy/certs/ca.pem to 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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:2
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
jsanthacommented, May 21, 2021

@valter11111 I’ve just tried this workaround again for latest cypress version and it still works, follow these steps:

  • import AppData/Roaming/Cypress/cy/production/proxy/certs/ca.pem
  • restart chrome (check for no background chrome processes in task manager)
  • run tests again and invalid cert warning should disappear
2reactions
valter11111commented, May 21, 2021

I 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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Proxy Configuration - Cypress Documentation
When connecting through a proxy, oftentimes a self signed certificate is used as a CA. In order to handle this configuration, Cypress automatically...
Read more >
Memory and storage in After Effects - Adobe Support
Caches : RAM cache, disk cache, and media cache. As you work on a composition, After Effects temporarily stores some rendered frames and...
Read more >
MilitaryCAC's Common Problems and Solutions for CAC ...
This error message only affects Government Computers. Solution 2-1: Have another person logon to the computer with their CAC and update the DoD...
Read more >
@cypress/request | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >
Citrix Workspace app for Mac
The keyboard configuration changes take effect once you reconnect to the ... If there are no valid certificates in your keychain, the Citrix ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found