fix: corsAll headers

This commit is contained in:
Geno 2020-11-27 14:47:45 +01:00
parent 146eec83a2
commit 537f0430f0
1 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,10 @@
[http.middlewares.httpsRedirect.redirectScheme] [http.middlewares.httpsRedirect.redirectScheme]
scheme = "https" scheme = "https"
permanent = true permanent = true
[http.middlewares.corsAll.headers] [http.middlewares.corsAll.headers]
accessControlAllowMethods= ["GET", "OPTIONS", "PUT"] accessControlAllowHeaders = ["*", "authorization"]
accessControlAllowOrigin = "origin-list-or-null" accessControlAllowMethods= ["GET", "OPTIONS", "POST", "PUT", "DELETE"]
accessControlAllowOrigin = "*"
accessControlMaxAge = 100 accessControlMaxAge = 100
addVaryHeader = true addVaryHeader = true