diff options
author | Kamil Kisiel <kamil@kamilkisiel.net> | 2016-05-25 23:33:48 +0300 |
---|---|---|
committer | Kamil Kisiel <kamil@kamilkisiel.net> | 2016-05-25 23:33:48 +0300 |
commit | ff356348f74133a59d3e93aa24b5b4551b6fe90d (patch) | |
tree | 714adbaad95e04b393d5a88e44d8e8336a723b2a | |
parent | 667fe4e3466a040b780561fe9b51a83a3753eefc (diff) | |
parent | f5b37263f070b2cf0fd8d0bf1b4bbe206b2737e1 (diff) |
Merge pull request #39 from 0x434D53/master
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) } |