Skip to content

Commit

Permalink
Fix logging in on production
Browse files Browse the repository at this point in the history
  • Loading branch information
tibetsprague committed Dec 22, 2024
1 parent 911ea02 commit 092f886
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/web/src/client/websockets.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ if (isClient) {

// Optional: configure additional options
io.sails.autoConnect = true
io.sails.useCORSRouteToGetCookie = false

// XXX: this is needed with our current setup on production, to get the session cookie from the server, using the API host, and enable logging in at all.
// Otherwise, the session cookie is does not come through when calling https://www.hylo.com/noo/graphql,and the login fails
io.sails.useCORSRouteToGetCookie = true

io.sails.environment = environment
io.sails.reconnection = true
Expand Down

0 comments on commit 092f886

Please sign in to comment.