Update appendix globalcors config property (#1348)
* Add missing config property to metadata json * Update test config to dash-case
This commit is contained in:
committed by
Spencer Gibb
parent
85df9b463f
commit
4a33f1bfd2
@@ -2178,7 +2178,7 @@ spring:
|
||||
cloud:
|
||||
gateway:
|
||||
globalcors:
|
||||
corsConfigurations:
|
||||
cors-configurations:
|
||||
'[/**]':
|
||||
allowedOrigins: "https://docs.spring.io"
|
||||
allowedMethods:
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ spring:
|
||||
cloud:
|
||||
gateway:
|
||||
globalcors:
|
||||
corsConfigurations:
|
||||
cors-configurations:
|
||||
'[/**]':
|
||||
maxAge: 10
|
||||
allowedOrigins: "*"
|
||||
|
||||
Reference in New Issue
Block a user