Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookies not sent for WebSocket requests #325

Open
KPhi opened this issue Apr 12, 2018 · 0 comments
Open

Cookies not sent for WebSocket requests #325

KPhi opened this issue Apr 12, 2018 · 0 comments

Comments

@KPhi
Copy link

KPhi commented Apr 12, 2018

When opening a WebSocket connection via JavaScript, jBrowserDriver doesn't send any cookies with the upgrade request, effectively rendering any session state unusable. Also, these requests aren't output in the wire log.

Here is how the sent headers look like in a browser when creating a WebSocket connection (note the sent session cookie):
browser

This is what jBrowserDriver sends:
jbrowserdriver

I've also created a WAR for Tomcat 7 which contains the web-app I tested with:
WebSocketTest.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant