Skip to content

Commit

Permalink
disable path and domain on cookie set
Browse files Browse the repository at this point in the history
  • Loading branch information
0c34 committed Nov 2, 2017
1 parent a0fbaa9 commit 587f539
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/cookie.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ func CheckLevel(r *http.Request) bool {

func SetCookie(w http.ResponseWriter, name, value string){
cookie := http.Cookie{
//Path : "/",
//Domain : "localhost",
Name: name,
Value: value,
}
Expand Down

0 comments on commit 587f539

Please sign in to comment.