diff options
author | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-02-14 15:58:16 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.eu> | 2024-02-14 15:58:16 +0100 |
commit | 6544171b7a6eb2e0156b66a1ad4c58d3a6cacd86 (patch) | |
tree | c1ce0edd527024e8e03f113b0fb00c05cdfc37bc /main.go | |
parent | 3194896b33500bab959147bac38ab4fb93dd55bb (diff) | |
download | gosten-6544171b7a6eb2e0156b66a1ad4c58d3a6cacd86.tar.gz gosten-6544171b7a6eb2e0156b66a1ad4c58d3a6cacd86.tar.bz2 gosten-6544171b7a6eb2e0156b66a1ad4c58d3a6cacd86.zip |
CSRF handling
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -45,7 +45,7 @@ func main() { mux.Handle("/static/", http.StripPrefix("/static", http.FileServer(http.Dir("static")))) mux.Handle("/favicon.ico", http.NotFoundHandler()) - handler := sessionHandler(mux) + handler := sessionHandler(csrfHandler(mux)) handler = handlers.CombinedLoggingHandler(os.Stderr, handler) handler = handlers.ProxyHeaders(handler) |