Fixed CORS mapping

This commit is contained in:
Volodymyr Babak 2019-03-21 17:38:27 +02:00
parent 0285832bed
commit 1a1e66fa56

View File

@ -273,23 +273,17 @@ updates:
spring.mvc.cors:
mappings:
# Intercept path
"[/api/auth/**]":
"[/api/**]":
#Comma-separated list of origins to allow. '*' allows all origins. When not set,CORS support is disabled.
allowed-origins: "*"
#Comma-separated list of methods to allow. '*' allows all methods.
allowed-methods: "POST,GET,OPTIONS"
allowed-methods: "*"
#Comma-separated list of headers to allow in a request. '*' allows all headers.
allowed-headers: "*"
#How long, in seconds, the response from a pre-flight request can be cached by clients.
max-age: "1800"
#Set whether credentials are supported. When not set, credentials are not supported.
allow-credentials: "true"
"[/api/v1/**]":
allowed-origins: "*"
allowed-methods: "*"
allowed-headers: "*"
max-age: "1800"
allow-credentials: "true"
# spring serve gzip compressed static resources
spring.resources.chain: