My socket connection is sending old cookies, I’m using reverse proxy. Perhaps it is cached somehow?
nginx:
server {
listen 443 ssl http2;
listen [::]:443 ssl http2;
server_name ws.site.com;
ssl_certificate cert.pem;
ssl_certificate_key privkey.pem;
location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_pass https://123:3000;
proxy_cache off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
Connecting to a socket is the most common; by default it takes cookies and sends them in the header.
Immediately I see cookies that have not been on the site for a very long time. I reloaded the page to reconnect the socket, I restarted the server – nothing helps.