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

Add command line flag to disable cookies #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sammacbeth
Copy link

When running the discovery-swarm-webrtc server, the socket.io defaults set a cookie. These cookies, however, do not set samSite flags, causing warnings in modern browsers:

Screenshot 2020-04-24 at 17 59 21

This PR makes two changes:

  1. Add a --no-cookie option to the command line interface, that stops socket.io from setting cookies.
  2. Updates to a newer version of socket.io, which in turn uses a version of engine.io that sets cookies with sameSite=strict, which will suppress browser warnings: https://github.com/socketio/engine.io/releases/tag/3.4.1

Sam Macbeth added 2 commits April 24, 2020 18:01
Passes cookie=false option to socket.io which stops cookie's being set for clients.
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

Successfully merging this pull request may close these issues.

1 participant