diff --git a/src/main.go b/src/main.go index f3138bf..b40637e 100644 --- a/src/main.go +++ b/src/main.go @@ -180,8 +180,14 @@ func main() { nodeUUID = string(uuidBytes) //Create a new webmin mux and csrf middleware layer - webminPanelMux := http.NewServeMux() - csrfMiddleware := csrf.Protect([]byte(nodeUUID)) + webminPanelMux = http.NewServeMux() + csrfMiddleware = csrf.Protect( + []byte(nodeUUID), + csrf.CookieName("zoraxy-csrf"), + csrf.Secure(false), + csrf.Path("/"), + csrf.SameSite(csrf.SameSiteLaxMode), + ) //Startup all modules startupSequence()