Enable CORS configuration
This commit is contained in:
parent
883f90dded
commit
d2b38e6ac4
13 changed files with 888 additions and 89 deletions
|
@ -70,6 +70,13 @@
|
|||
excludedIPs = ["127.0.0.1/16", "192.168.1.7"]
|
||||
|
||||
[http.middlewares.my-headers.Headers]
|
||||
accessControlAllowCredentials = true
|
||||
accessControlAllowHeaders = ["X-foobar", "X-fiibar"]
|
||||
accessControlAllowMethods = ["GET", "PUT"]
|
||||
accessControlAllowOrigin = "*"
|
||||
accessControlExposeHeaders = ["X-foobar", "X-fiibar"]
|
||||
accessControlMaxAge = 200
|
||||
addVaryHeader = true
|
||||
allowedHosts = ["foobar", "foobar"]
|
||||
hostsProxyHeaders = ["foobar", "foobar"]
|
||||
sslRedirect = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue