From e194715c3ef30f6b1d4c5ee080d5919d216f3dcd Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Wed, 9 Feb 2022 14:34:48 +0100 Subject: [PATCH] internal: fix CSRF error caused by Host header Signed-off-by: Jens Langhammer --- internal/web/proxy.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/web/proxy.go b/internal/web/proxy.go index d85e2324e..d0ce80a74 100644 --- a/internal/web/proxy.go +++ b/internal/web/proxy.go @@ -18,7 +18,6 @@ func (ws *WebServer) configureProxy() { director := func(req *http.Request) { req.URL.Scheme = u.Scheme req.URL.Host = u.Host - req.Host = u.Host if _, ok := req.Header["User-Agent"]; !ok { // explicitly disable User-Agent so it's not set to default value req.Header.Set("User-Agent", "")