From 537f0430f03db27ae917fe1c2b21bde5e7a08f99 Mon Sep 17 00:00:00 2001 From: Geno Date: Fri, 27 Nov 2020 14:47:45 +0100 Subject: [PATCH] fix: corsAll headers --- templates/conf.d/00-default.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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