diff options
-rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) } |