Skip to content

Commit 6619406

Browse files
committed
Improve cookie security
1 parent 841501c commit 6619406

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/password_example_web/endpoint.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ defmodule PasswordExampleWeb.Endpoint do
77
@session_options [
88
store: :cookie,
99
key: "_password_example_key",
10-
signing_salt: "4yF7WKEj"
10+
signing_salt: "4yF7WKEj",
11+
http_only: true,
12+
secure: true,
13+
same_site: "Strict"
1114
]
1215

1316
socket "/socket", PasswordExampleWeb.UserSocket,

0 commit comments

Comments
 (0)