You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I would like to open a WebSocket connection in a test file with the Native Javascript WebSocket API, but the authentication is failing.
The WebSocket has to use a session cookie to authenticate to the server. The cookie is set by a previous cy.request to the login API, but it is not reused and added to the headers when I'm opening the Websocket connection. The domain of the Websocket is the same that the domain of the cookie.
Is it a normal behaviour or a bug ?
Desired behavior
I expect that opening a Websocket connection could use the cookie, and have the same behaviour than in the Browser.
Test code to reproduce
cy.request to login to myserver.com
cookie is set for the myserver.com domain (I can see it in the debug tools)
new Websocket('wss://myserver.com') failed to authenticate because the cookie is not sent in the Headers.
Cypress Version
13.6.0
Node version
18.9.0
Operating System
Windows
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered:
Current behavior
Hello, I would like to open a WebSocket connection in a test file with the Native Javascript WebSocket API, but the authentication is failing.
The WebSocket has to use a session cookie to authenticate to the server. The cookie is set by a previous cy.request to the login API, but it is not reused and added to the headers when I'm opening the Websocket connection. The domain of the Websocket is the same that the domain of the cookie.
Is it a normal behaviour or a bug ?
Desired behavior
I expect that opening a Websocket connection could use the cookie, and have the same behaviour than in the Browser.
Test code to reproduce
cy.request to login to myserver.com
cookie is set for the myserver.com domain (I can see it in the debug tools)
new Websocket('wss://myserver.com') failed to authenticate because the cookie is not sent in the Headers.
Cypress Version
13.6.0
Node version
18.9.0
Operating System
Windows
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: