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]
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