]> saetta.ns0.it Git - libzakcgi/commitdiff
Setted cookies SameSite=Lax.
authorAndrea Zagli <azagli@libero.it>
Wed, 1 Jul 2020 14:07:34 +0000 (16:07 +0200)
committerAndrea Zagli <azagli@libero.it>
Thu, 2 Jul 2020 07:10:29 +0000 (09:10 +0200)
src/main.c

index 938ff2db9ea2795815abc58129a16f3e9ae4e8f2..e02ac618d098c473d4b33bcbe31cbf1e6da1d05c 100644 (file)
@@ -496,6 +496,9 @@ gchar
        g_string_append_printf (str, "%s=%s",
                                                        name,
                                                        value);
+
+       g_string_append (str, "; SameSite=Lax");
+
        if (expires != NULL)
                {
                        g_string_append_printf (str, "%s", g_date_time_format (expires, "; expires=%a, %d-%b-%Y %H:%M:%S GMT"));