Set cookie to http only

This commit is contained in:
Lucas Schumacher 2024-08-13 11:39:19 -04:00
parent 4cf50a7d81
commit 56f98a9c14

View File

@ -60,9 +60,10 @@ func (u Users) PostSignin(w http.ResponseWriter, r *http.Request) {
// Bad cookie
cookie := http.Cookie{
Name: "bad",
Value: user.Email,
Path: "/",
Name: "bad",
Value: user.Email,
Path: "/",
HttpOnly: true,
}
http.SetCookie(w, &cookie)