From fd517cb2f80b68eadef73f469e819f628504a27d Mon Sep 17 00:00:00 2001 From: William Brawner Date: Tue, 30 Jun 2020 03:17:50 +0000 Subject: [PATCH] Allow credentials for CORS requests Signed-off-by: William Brawner --- .../java/com/wbrawner/budgetserver/config/SecurityConfig.java | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/main/java/com/wbrawner/budgetserver/config/SecurityConfig.java b/api/src/main/java/com/wbrawner/budgetserver/config/SecurityConfig.java index 50a3b59..ddafeee 100644 --- a/api/src/main/java/com/wbrawner/budgetserver/config/SecurityConfig.java +++ b/api/src/main/java/com/wbrawner/budgetserver/config/SecurityConfig.java @@ -99,6 +99,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter { .map(Enum::name) .collect(Collectors.toList()) ); + corsConfig.setAllowCredentials(true); return corsConfig; }) .and()