#Does cookie set in loaders accessible in the express server?

1 messages · Page 1 of 1 (latest)

granite scaffold
#

I want to have a websocket endpoint in my server.ts my method of authentication is cookie based auth if I set a cookie in an action can I access it in the websocket endpoint?

trim hound
#

yes, any cookie set by Remix will be sent from the browser to your server in every request, that includes your WS endpoint if it's on the same domain