Fixed CORS mapping
This commit is contained in:
parent
0285832bed
commit
1a1e66fa56
@ -273,23 +273,17 @@ updates:
|
|||||||
spring.mvc.cors:
|
spring.mvc.cors:
|
||||||
mappings:
|
mappings:
|
||||||
# Intercept path
|
# Intercept path
|
||||||
"[/api/auth/**]":
|
"[/api/**]":
|
||||||
#Comma-separated list of origins to allow. '*' allows all origins. When not set,CORS support is disabled.
|
#Comma-separated list of origins to allow. '*' allows all origins. When not set,CORS support is disabled.
|
||||||
allowed-origins: "*"
|
allowed-origins: "*"
|
||||||
#Comma-separated list of methods to allow. '*' allows all methods.
|
#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.
|
#Comma-separated list of headers to allow in a request. '*' allows all headers.
|
||||||
allowed-headers: "*"
|
allowed-headers: "*"
|
||||||
#How long, in seconds, the response from a pre-flight request can be cached by clients.
|
#How long, in seconds, the response from a pre-flight request can be cached by clients.
|
||||||
max-age: "1800"
|
max-age: "1800"
|
||||||
#Set whether credentials are supported. When not set, credentials are not supported.
|
#Set whether credentials are supported. When not set, credentials are not supported.
|
||||||
allow-credentials: "true"
|
allow-credentials: "true"
|
||||||
"[/api/v1/**]":
|
|
||||||
allowed-origins: "*"
|
|
||||||
allowed-methods: "*"
|
|
||||||
allowed-headers: "*"
|
|
||||||
max-age: "1800"
|
|
||||||
allow-credentials: "true"
|
|
||||||
|
|
||||||
# spring serve gzip compressed static resources
|
# spring serve gzip compressed static resources
|
||||||
spring.resources.chain:
|
spring.resources.chain:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user