diff --git a/templates/conf.d/00-default.toml b/templates/conf.d/00-default.toml index d96ef13..5b2ddd5 100644 --- a/templates/conf.d/00-default.toml +++ b/templates/conf.d/00-default.toml @@ -1,8 +1,10 @@ [http.middlewares.httpsRedirect.redirectScheme] scheme = "https" permanent = true + [http.middlewares.corsAll.headers] - accessControlAllowMethods= ["GET", "OPTIONS", "PUT"] - accessControlAllowOrigin = "origin-list-or-null" + accessControlAllowHeaders = ["*", "authorization"] + accessControlAllowMethods= ["GET", "OPTIONS", "POST", "PUT", "DELETE"] + accessControlAllowOrigin = "*" accessControlMaxAge = 100 addVaryHeader = true