From 159638084e167047b86fd65382f50cd099d4eb48 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 24 May 2022 17:27:03 -0600 Subject: Fix CSRF loading on static GET pages --- srv/src/http/api.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'srv/src/http/api.go') diff --git a/srv/src/http/api.go b/srv/src/http/api.go index 19a65d9..da54c9c 100644 --- a/srv/src/http/api.go +++ b/srv/src/http/api.go @@ -163,6 +163,9 @@ func (a *api) Shutdown(ctx context.Context) error { func (a *api) apiHandler() http.Handler { mux := http.NewServeMux() + + mux.Handle("/csrf", a.getCSRFTokenHandler()) + mux.Handle("/pow/challenge", a.newPowChallengeHandler()) mux.Handle("/pow/check", a.requirePowMiddleware( -- cgit v1.2.3