Making all cookies httponly - Fixes #333

pull/260/head
Jordan Wright 2016-08-06 16:00:36 -05:00
parent 528418f16d
commit cb70e0b953
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ import (
func init() { func init() {
gob.Register(&models.User{}) gob.Register(&models.User{})
gob.Register(&models.Flash{}) gob.Register(&models.Flash{})
Store.Options.HttpOnly = true
} }
// Store contains the session information for the request // Store contains the session information for the request