From 0285832bed0c83a89cb34917215dcc38ef63ebf4 Mon Sep 17 00:00:00 2001 From: Volodymyr Babak Date: Thu, 21 Mar 2019 15:07:14 +0200 Subject: [PATCH] Fixed CORS mapping --- application/src/main/resources/thingsboard.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/src/main/resources/thingsboard.yml b/application/src/main/resources/thingsboard.yml index 72b8159407..f52bfccabc 100644 --- a/application/src/main/resources/thingsboard.yml +++ b/application/src/main/resources/thingsboard.yml @@ -273,7 +273,7 @@ updates: spring.mvc.cors: mappings: # Intercept path - "/api/auth/**": + "[/api/auth/**]": #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. @@ -284,7 +284,7 @@ spring.mvc.cors: max-age: "1800" #Set whether credentials are supported. When not set, credentials are not supported. allow-credentials: "true" - "/api/v1/**": + "[/api/v1/**]": allowed-origins: "*" allowed-methods: "*" allowed-headers: "*"