cypress-plugin-snapshots icon indicating copy to clipboard operation
cypress-plugin-snapshots copied to clipboard

(bug) update button fails due to socket-io CORS

Open DamienChing opened this issue 4 years ago • 0 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Click on 'COMPARE SNAPSHOT'
  2. Click on 'Update Snapshot'

Expected behavior A clear and concise description of what you expected to happen.

Temp Solution (does not work for firefox) add "chromeWebSecurity": true to cypress.json

Permanent Solution you probably want upgrade socket-io and enable cors for all origins. socket-io <2.4 had this enabled by default, but socket-io 2.2.0 had a bug where this was broken. https://github.com/socketio/socket.io/issues/3381 image

Screenshots image image

Desktop (please complete the following information):

  • OS: OSX Big Sur
  • Cypress Version: 4.5.0+

Additional context Add any other context about the problem here.

DamienChing avatar Jan 06 '21 14:01 DamienChing