summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 5ed299e..da112e4 100644
--- a/README.md
+++ b/README.md
@@ -45,6 +45,8 @@ func SetCookieHandler(w http.ResponseWriter, r *http.Request) {
Name: "cookie-name",
Value: encoded,
Path: "/",
+ Secure: true,
+ HttpOnly: true,
}
http.SetCookie(w, cookie)
}