From d84554508a406e6f3005def9759173c11d12b586 Mon Sep 17 00:00:00 2001 From: AN-SOHYEON Date: Thu, 25 Jan 2024 16:48:15 +0900 Subject: [PATCH] Fix: Add cors-allow domain (#197) --- .../main/java/kernel/jdon/config/auth/OAuth2SecurityConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module-api/src/main/java/kernel/jdon/config/auth/OAuth2SecurityConfig.java b/module-api/src/main/java/kernel/jdon/config/auth/OAuth2SecurityConfig.java index 54883d383..6e87e7372 100644 --- a/module-api/src/main/java/kernel/jdon/config/auth/OAuth2SecurityConfig.java +++ b/module-api/src/main/java/kernel/jdon/config/auth/OAuth2SecurityConfig.java @@ -27,7 +27,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception { http.cors(corsCustomizer -> corsCustomizer.configurationSource(request -> { CorsConfiguration config = new CorsConfiguration(); - config.setAllowedOrigins(List.of("http://localhost:3000")); + config.setAllowedOrigins(List.of("http://localhost:3000", "https://peaceful-sopapillas-36c089.netlify.app")); config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE")); config.setAllowedHeaders(List.of("*")); config.setMaxAge(3600L);