doc: fix accessControlAllowHeaders examples
This commit is contained in:
parent
ba912e1a93
commit
fc7f732029
1 changed files with 4 additions and 3 deletions
|
@ -231,7 +231,8 @@ spec:
|
||||||
- "GET"
|
- "GET"
|
||||||
- "OPTIONS"
|
- "OPTIONS"
|
||||||
- "PUT"
|
- "PUT"
|
||||||
accessControlAllowHeaders: "*"
|
accessControlAllowHeaders:
|
||||||
|
- "*"
|
||||||
accessControlAllowOriginList:
|
accessControlAllowOriginList:
|
||||||
- "https://foo.bar.org"
|
- "https://foo.bar.org"
|
||||||
- "https://example.org"
|
- "https://example.org"
|
||||||
|
@ -286,8 +287,8 @@ http:
|
||||||
```toml tab="File (TOML)"
|
```toml tab="File (TOML)"
|
||||||
[http.middlewares]
|
[http.middlewares]
|
||||||
[http.middlewares.testHeader.headers]
|
[http.middlewares.testHeader.headers]
|
||||||
accessControlAllowMethods= ["GET", "OPTIONS", "PUT"]
|
accessControlAllowMethods = ["GET", "OPTIONS", "PUT"]
|
||||||
accessControlAllowHeaders= "*"
|
accessControlAllowHeaders = [ "*" ]
|
||||||
accessControlAllowOriginList = ["https://foo.bar.org","https://example.org"]
|
accessControlAllowOriginList = ["https://foo.bar.org","https://example.org"]
|
||||||
accessControlMaxAge = 100
|
accessControlMaxAge = 100
|
||||||
addVaryHeader = true
|
addVaryHeader = true
|
||||||
|
|
Loading…
Reference in a new issue