Sign and encrypt cookies

This commit is contained in:
Claudio Ortolina
2025-02-24 11:02:00 +00:00
parent fabc3a7557
commit 1902c5f42f
+3 -1
View File
@@ -10,7 +10,9 @@ defmodule MusicLibraryWeb.Endpoint do
signing_salt: "esP44C0z",
same_site: "Strict",
# one week
max_age: 60 * 60 * 24 * 7
max_age: 60 * 60 * 24 * 7,
sign: true,
encrypt: true
]
socket "/live", Phoenix.LiveView.Socket,