diff options
author | 0x434D53 <christoph.seufert@gmail.com> | 2016-05-25 17:56:53 +0300 |
---|---|---|
committer | 0x434D53 <christoph.seufert@gmail.com> | 2016-05-25 17:56:53 +0300 |
commit | f5b37263f070b2cf0fd8d0bf1b4bbe206b2737e1 (patch) | |
tree | 714adbaad95e04b393d5a88e44d8e8336a723b2a | |
parent | 667fe4e3466a040b780561fe9b51a83a3753eefc (diff) |
Update Readme: Added HttpOnly, Secure flags for setting the cookie
-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) } |