Use flags for cookies
On the server, enable Secure and SameSite=Strict in the Set-Cookie header when in production mode (only). In all cases, enable HttpOnly for the session cookie and any other cookie that does not need to be accessible to scripts.
- [x]
HttpOnly - [ ]
Secure - [ ]
SameSite=Strict
HttpOnly flag set (with corresponding client changes) in #677.
Right now, the server does not know the difference between "production mode" and "not production mode"; I can add such a thing (if we think it's really important), but not immediately.
@dmzimmerman let's move this to the final deliverable, as we've addressed the most critical part (HttpOnly for the session token).
Do we need to do this for this week?