Update appendix globalcors config property (#1348)

* Add missing config property to metadata json

* Update test config to dash-case
This commit is contained in:
Ugnius Rumsevicius
2020-01-13 15:00:57 -06:00
committed by Spencer Gibb
parent 85df9b463f
commit 4a33f1bfd2
3 changed files with 8 additions and 2 deletions

View File

@@ -2178,7 +2178,7 @@ spring:
cloud:
gateway:
globalcors:
corsConfigurations:
cors-configurations:
'[/**]':
allowedOrigins: "https://docs.spring.io"
allowedMethods:

View File

@@ -23,6 +23,12 @@
"type": "java.lang.Boolean",
"description": "Enables wiretap debugging for Netty HttpServer.",
"defaultValue": "false"
},
{
"name": "spring.cloud.gateway.globalcors.add-to-simple-url-handler-mapping",
"type": "java.lang.Boolean",
"description": "If global CORS config should be added to the URL handler.",
"defaultValue": "false"
}
]
}

View File

@@ -11,7 +11,7 @@ spring:
cloud:
gateway:
globalcors:
corsConfigurations:
cors-configurations:
'[/**]':
maxAge: 10
allowedOrigins: "*"