Open gbruins-notours opened 2 years ago
UPDATE: I changed the session name from "bv_session" to "bvsession" and also changed the Domain value to it's proper value of breadvan.net, and this seems to have fixed the problem on Chrome and FF. Safari is not sending the cookie with the request though, as if it's in incognito mode or something.
UPDATE: Had to change Safari preferences to get it to work: Make sure you test Safari Preferences → Privacy → Website tracking: prevent cross-site tracking. I had to turn this off
After a successful login, the next API request fails with a 401 Unauthorized error, with a message of "Invalid cookie"
The cookie really does look invalid... there is a space because there is a double 'bv-session' value in the request header:
Haven't found a solution yet as to why the UI is sending that.
Ironically, the only workaround I have is to change the "SESSION_COOKIE_DOMAIN" env variable on the server to the CLIENT domain: "breadvan.org", which isnt right (should be the server "breadvan.net") and in fact Chrome complains, but somehow still works and sends this cookie with the request. (This workaround doesnt work on Safari or DuckDuckGo however)
Could this be a nuxt bug?