Skip to content

Conversation

imsnif
Copy link
Member

@imsnif imsnif commented Aug 6, 2025

Previously, we would set the secure cookie flag (meaning the cookie should only be sent on https connections) to our session_token cookie whether we were on http or https. Most browsers have a "localhost exception" for this, meaning they send secure cookies on non-https connections so long as they are to localhost. Safari does not have this exception, so users were unable to log-in before they set an https certificate.

This fixes the issue by conditionally setting the secure flag depending on whether the connection is https or not. Since the web client does not perform any http (or indeed, any remote) requests other than to the server, this is not considered risky.

@imsnif
Copy link
Member Author

imsnif commented Aug 6, 2025

@tlinford - mind giving this a test on safari to make sure we fixed the issue you found?

@tlinford
Copy link
Member

tlinford commented Aug 6, 2025

Seems fine now.

@imsnif imsnif merged commit 9fdb4ac into main Aug 7, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants