From fc7f732029b9c9bd4e90315b4cfd8bed44effb67 Mon Sep 17 00:00:00 2001 From: Thomas Decaux Date: Tue, 12 Sep 2023 17:52:05 -0400 Subject: [PATCH] doc: fix accessControlAllowHeaders examples --- docs/content/middlewares/http/headers.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/content/middlewares/http/headers.md b/docs/content/middlewares/http/headers.md index 432ab008c..3af8f36a7 100644 --- a/docs/content/middlewares/http/headers.md +++ b/docs/content/middlewares/http/headers.md @@ -231,7 +231,8 @@ spec: - "GET" - "OPTIONS" - "PUT" - accessControlAllowHeaders: "*" + accessControlAllowHeaders: + - "*" accessControlAllowOriginList: - "https://foo.bar.org" - "https://example.org" @@ -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