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
Hello. Why in https://docs.gofiber.io/api/middleware/csrf middleware impossible to set session cookie? In secure context from XXS/CSRF attacks session cookies are more secure.
Or is it possible to set cookies as session in this middleware?
If I set Expiration as 0, Expiration field goes to header, but if I want to make cookies as session I should not set headers Max-Age and Expires.
Thanks for opening your first issue here! 🎉 Be sure to follow the issue template! If you need help or want to chat with us, join us on Discord https://gofiber.io/discord
Makemanback
changed the title
🤗 why it's not possible to set XXS/CSRF cookie
🤗 why it's not possible to set cookie for CSRF middleware expire date to session?
Nov 1, 2021
@ReneWerner87 we could have a field named SessionOnly or something similar which if true will ignore max age and expires header. How does that sound? I could work on this.
Hello. Why in https://docs.gofiber.io/api/middleware/csrf middleware impossible to set session cookie? In secure context from XXS/CSRF attacks session cookies are more secure.
Or is it possible to set cookies as session in this middleware?
If I set Expiration as 0, Expiration field goes to header, but if I want to make cookies as session I should not set headers Max-Age and Expires.
Session cookie - https://developer.mozilla.org/en-US/docs/Web/HTTP/Cookies#define_the_lifetime_of_a_cookie
The text was updated successfully, but these errors were encountered: