fukamachi / lack

Lack, the core of Clack
MIT License
148 stars 33 forks source link

Re Add samesite to bake cookie function and lack.middleware.session.state.cookie for modern browser. #53

Closed madosuki closed 3 years ago

madosuki commented 3 years ago

This PR purpose of add the SameSite in Set-Cookie to bake cookie function and lack.middleware.session.state.cookie for modern browser.

Default behavior is set "SameSite=None".

Difference from #51 is remove deftype and changed type of samesite slot to keyword then a bit changed samesite process in response.lisp.

usage:

(:session
  :state (make-cookie-state
     :samesite :lax))
fukamachi commented 3 years ago

Thanks!