diff --git a/controller/handler/handler.go b/controller/handler/handler.go index 9253b929..f7e753d4 100644 --- a/controller/handler/handler.go +++ b/controller/handler/handler.go @@ -40,7 +40,7 @@ func CreateRouter(staticFolder string, securityConfig *security.Config, uiConfig } func secureIfNecessary(securityConfig *security.Config, handler http.HandlerFunc) http.HandlerFunc { - if securityConfig != nil && securityConfig.IsValid() { + if securityConfig != nil { return security.Handler(handler, securityConfig) } return handler