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

The socket.io does not take the necessary cookies when connecting #4835

Open
makssein opened this issue Sep 23, 2023 · 1 comment
Open

The socket.io does not take the necessary cookies when connecting #4835

makssein opened this issue Sep 23, 2023 · 1 comment
Labels
question Further information is requested

Comments

@makssein
Copy link

On the beta.site.com domain I connect to my socket, the connection is successful, but on the server I see cookies only from the .site.com domain, although cookies from the beta.site.com domain should also have arrived, because this is the domain from which the connection is made. Why does this happen and how to fix it?

server:

 this.io = new Server(HTTPServer, {
            cors: {
                origin: process.env.SOCKET_ORIGIN,
                methods: ["GET", "POST"],
                credentials: true,
                transports: ['websocket', 'polling']
            },
            cookie: true,
            allowEIO3: true
        });

client:

socket = io(socketEndPoint, {
        withCredentials: true,
    });
@makssein makssein added the to triage Waiting to be triaged by a member of the team label Sep 23, 2023
@darrachequesne
Copy link
Member

Hi! Did you find a solution?

@darrachequesne darrachequesne added question Further information is requested and removed to triage Waiting to be triaged by a member of the team labels Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants