From 7507a8abbca2b7fe14ad18336d807581f6ce4f59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Mon, 24 Oct 2022 16:40:23 +0200 Subject: Cookies: default SameSite is now "Default", not "None" --- src/gun_cookies.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gun_cookies.erl b/src/gun_cookies.erl index 984e491..b07f4b5 100644 --- a/src/gun_cookies.erl +++ b/src/gun_cookies.erl @@ -44,7 +44,7 @@ host_only := boolean(), secure_only := boolean(), http_only := boolean(), - same_site := strict | lax | none + same_site := default | none | strict | lax }. -export_type([cookie/0]). @@ -286,7 +286,7 @@ set_cookie_secure_match({Mod, State}, Match) -> Mod:set_cookie_secure_match(State, Match). set_cookie2(Store, _URI, Attrs, Cookie0) -> - Cookie = Cookie0#{same_site => maps:get(same_site, Attrs, none)}, + Cookie = Cookie0#{same_site => maps:get(same_site, Attrs, default)}, %% This is where we would perform the same-site checks. %% %% It seems that an option would need to be added to Gun -- cgit v1.2.3