Skip to content

fix: set cookie secure flag to false in dev config#1027

Open
emimoir wants to merge 1 commit intogetprobo:mainfrom
emimoir:fix/dev-cookie-secure-flag-v2
Open

fix: set cookie secure flag to false in dev config#1027
emimoir wants to merge 1 commit intogetprobo:mainfrom
emimoir:fix/dev-cookie-secure-flag-v2

Conversation

@emimoir
Copy link
Copy Markdown

@emimoir emimoir commented Apr 11, 2026

The dev config (cfg/dev.yaml) uses http://localhost:8080 (plain HTTP), but the session cookie had secure: true, which tells browsers to only send cookies over HTTPS. This caused a sign-in loop where authentication succeeded but the browser dropped the cookie, redirecting back to login.

This change sets secure: false for the cookie configuration in the dev config only.


Summary by cubic

Set session cookies secure=false in cfg/dev.yaml to match http://localhost:8080 and fix the sign-in loop caused by browsers dropping HTTPS-only cookies in dev. Dev-only; production config unchanged.

Written for commit 70ab3fa. Summary will update on new commits.

Copy link
Copy Markdown

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

The dev config uses http://localhost:8080 (plain HTTP), but both session
cookies had secure: true, which tells browsers to only send cookies over
HTTPS. This caused a sign-in loop where authentication succeeded but the
browser dropped the cookie, redirecting back to login. This change sets
secure: false for both cookie configurations in the dev config only.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Emily Moir <emi@emimoir.com>
@emimoir emimoir force-pushed the fix/dev-cookie-secure-flag-v2 branch from 8dc91e8 to 70ab3fa Compare April 11, 2026 16:45
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.

1 participant