You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When setting a cookie with the attributes "Secure", "SameSite", or any other attribute that would scope the cookie to a narrower scope, deleteCookie will generate a cookie that doesn't delete that cookie.
Steps to Reproduce
Set a cookie with the attributes "SameSite" (set to "Strict"), "Partitioned" and "Secure". (I don't remember the specific attribute that has this effect; Partitioned is what I'm concerned about and it doesn't matter for this bug report)
Attempt to delete the cookie using deleteCookie, noticing that you can only specify the attributes path and domain.
Observe that the cookie sent by Deno is missing the attributes "SameSite", "Secure" and "Partitioned".
Observe that the browser refuses to delete the cookie.
Expected behavior
Deno allows deleting cookies with "SameSite", "Secure", etc. specified.
Environment
This isn't environment specific (although some browsers might be more forgiving when validating cookies).
OS: Debian 12
deno version: 1.44.2
std version: 0.216.0
The text was updated successfully, but these errors were encountered:
Describe the bug
When setting a cookie with the attributes "Secure", "SameSite", or any other attribute that would scope the cookie to a narrower scope,
deleteCookie
will generate a cookie that doesn't delete that cookie.Steps to Reproduce
deleteCookie
, noticing that you can only specify the attributespath
anddomain
.Expected behavior
Deno allows deleting cookies with "SameSite", "Secure", etc. specified.
Environment
This isn't environment specific (although some browsers might be more forgiving when validating cookies).
The text was updated successfully, but these errors were encountered: