Skip to content

Fixing flash message cookie handling#21

Merged
angrynode merged 1 commit intoangrynode:axumfrom
Gabatxo1312:fixing-flash-messages-cookie
Dec 1, 2025
Merged

Fixing flash message cookie handling#21
angrynode merged 1 commit intoangrynode:axumfrom
Gabatxo1312:fixing-flash-messages-cookie

Conversation

@Gabatxo1312
Copy link
Copy Markdown
Collaborator

No description provided.

@Gabatxo1312 Gabatxo1312 self-assigned this Dec 1, 2025
@Gabatxo1312 Gabatxo1312 requested a review from angrynode December 1, 2025 13:53
@angrynode
Copy link
Copy Markdown
Owner

For further code historians, this is because if you don't set the path on the cookie, it's only valid on the current route, not on the entire domain. Which means if your POST submission endpoint is in a different route, the cookie won't appear!

@angrynode
Copy link
Copy Markdown
Owner

That's perfect thank you!

@angrynode angrynode merged commit 191945b into angrynode:axum Dec 1, 2025
1 check 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