added CSRF
This commit is contained in:
parent
a06e8db2ff
commit
5c7d92f4f3
10 changed files with 42 additions and 6 deletions
|
@ -14,6 +14,7 @@ func main() {
|
|||
log.Fatal(err)
|
||||
}
|
||||
|
||||
h := web.NewHandler(store)
|
||||
csrfKey := []byte("dmwij82jda92jf9a202na#d2.e3i!824")
|
||||
h := web.NewHandler(store, csrfKey)
|
||||
http.ListenAndServe(":3000", h)
|
||||
}
|
||||
|
|
Reference in a new issue