From bc7ff2f552604e727d24b9f190b43602eb94b76d Mon Sep 17 00:00:00 2001 From: Bob Long Date: Sun, 1 May 2016 17:23:10 +0100 Subject: [PATCH] Add version information --- yesod-core/Yesod/Core/Class/Yesod.hs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/yesod-core/Yesod/Core/Class/Yesod.hs b/yesod-core/Yesod/Core/Class/Yesod.hs index f1eca3f8..4b758503 100644 --- a/yesod-core/Yesod/Core/Class/Yesod.hs +++ b/yesod-core/Yesod/Core/Class/Yesod.hs @@ -368,11 +368,15 @@ sslOnlySessions = (fmap . fmap) secureSessionCookies -- | Helps defend against CSRF attacks by setting the SameSite attribute on -- session cookies to "Lax". +-- +-- Since 1.4.21 laxSameSiteSessions :: IO (Maybe SessionBackend) -> IO (Maybe SessionBackend) laxSameSiteSessions = sameSiteSession sameSiteLax -- | Helps defend against CSRF attacks by setting the SameSite attribute on -- session cookies to "Strict". +-- +-- Since 1.4.21 strictSameSiteSessions :: IO (Maybe SessionBackend) -> IO (Maybe SessionBackend) strictSameSiteSessions = sameSiteSession sameSiteStrict