scribe/config/cookies.cr
Edward Loveall fcf3eb14d0
Initial app
2021-05-01 17:03:38 -04:00

14 lines
329 B
Crystal

require "./server"
Lucky::Session.configure do |settings|
settings.key = "_scribe_session"
end
Lucky::CookieJar.configure do |settings|
settings.on_set = ->(cookie : HTTP::Cookie) {
cookie.secure(Lucky::ForceSSLHandler.settings.enabled)
cookie.http_only(true)
cookie.samesite(:lax)
cookie.path("/")
}
end