edicl / hunchentoot

Web server written in Common Lisp
https://edicl.github.io/hunchentoot/
702 stars 125 forks source link

Added *default-cookie-same-site* defparameter and set :same-site attr… #222

Open jkcunningham opened 1 year ago

jkcunningham commented 1 year ago

The same-site attribute was recently introduced in the cookie class to accommodate new requirements in the browser communities (Mozilla initially). The start-session function sets an acceptor's cookie same-site attribute to NIL without an easy way to modify this. Setting the same-site attribute to default-cookie-same-site instead leaves the behavior unchanged, yet allows one to change the default behavior more easily.