Skip to content

Set .secure() based on config in remove_cookie() - #102

Merged
genusistimelord merged 1 commit into
AscendingCreations:mainfrom
amedeedaboville:fix-remove-cookie
May 7, 2026
Merged

Set .secure() based on config in remove_cookie()#102
genusistimelord merged 1 commit into
AscendingCreations:mainfrom
amedeedaboville:fix-remove-cookie

Conversation

@amedeedaboville

Copy link
Copy Markdown

I was seeing browser errors like:

Cookie "store” rejected because it has the “SameSite=None” attribute but is missing the “secure” attribute.

Which seems to come from remove_cookie() trying to remove a cookie with SameSite=None and Secure=True, but having it hard coded to false. This PR uses the cookie's config instead.

@genusistimelord genusistimelord left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks good thank you.

@genusistimelord
genusistimelord merged commit 7d27eec into AscendingCreations:main May 7, 2026
3 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