Skip to content

Commit

Permalink
doc: fix accessControlAllowHeaders examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ebuildy committed Sep 12, 2023
1 parent ba912e1 commit fc7f732
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/content/middlewares/http/headers.md
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,8 @@ spec:
- "GET"
- "OPTIONS"
- "PUT"
accessControlAllowHeaders: "*"
accessControlAllowHeaders:
- "*"
accessControlAllowOriginList:
- "https://foo.bar.org"
- "https://example.org"
Expand Down Expand Up @@ -286,8 +287,8 @@ http:
```toml tab="File (TOML)"
[http.middlewares]
[http.middlewares.testHeader.headers]
accessControlAllowMethods= ["GET", "OPTIONS", "PUT"]
accessControlAllowHeaders= "*"
accessControlAllowMethods = ["GET", "OPTIONS", "PUT"]
accessControlAllowHeaders = [ "*" ]
accessControlAllowOriginList = ["https://foo.bar.org","https://example.org"]
accessControlMaxAge = 100
addVaryHeader = true
Expand Down

0 comments on commit fc7f732

Please sign in to comment.