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
__Host- and __Secure- prefixed cookies mandate some security attributes to be present on the cookies, otherwise browsers entirely disregard them.
What about adding out-of-the-box support for these in Marten? If a prefixed cookie is set, the framework automatically set the required security attributes. I think that would make code more readable and in some cases save some accidental debugging time.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#cookie_prefixes
__Host-
and__Secure-
prefixed cookies mandate some security attributes to be present on the cookies, otherwise browsers entirely disregard them.What about adding out-of-the-box support for these in Marten? If a prefixed cookie is set, the framework automatically set the required security attributes. I think that would make code more readable and in some cases save some accidental debugging time.
Beta Was this translation helpful? Give feedback.
All reactions