summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2024-02-14 15:58:16 +0100
committerRené 'Necoro' Neumann <necoro@necoro.eu>2024-02-14 15:58:16 +0100
commit6544171b7a6eb2e0156b66a1ad4c58d3a6cacd86 (patch)
treec1ce0edd527024e8e03f113b0fb00c05cdfc37bc /main.go
parent3194896b33500bab959147bac38ab4fb93dd55bb (diff)
downloadgosten-6544171b7a6eb2e0156b66a1ad4c58d3a6cacd86.tar.gz
gosten-6544171b7a6eb2e0156b66a1ad4c58d3a6cacd86.tar.bz2
gosten-6544171b7a6eb2e0156b66a1ad4c58d3a6cacd86.zip
CSRF handling
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 20200c3..38bfd93 100644
--- a/main.go
+++ b/main.go
@@ -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)