Skip to content

Commit

Permalink
Fix: cors 경로 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
nohy6630 committed May 16, 2024
1 parent b4b44dd commit f247034
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.addFilterBefore(jwtFilter, ExceptionTranslationFilter.class)
.cors(c -> c.configurationSource(request -> {
CorsConfiguration config = new CorsConfiguration();
config.setAllowedOrigins(List.of("http://localhost:3000", "https://api.yeongjin.site", "https://ddoba.vercel.app"));
config.setAllowedOrigins(List.of("http://localhost:3000", "https://api.yeongjin.site", "https://ddoba.vercel.app", "https://www.ddoba.site"));
config.setAllowedMethods(List.of("*"));
config.setAllowCredentials(true);
config.setAllowedHeaders(List.of("*"));
Expand Down

0 comments on commit f247034

Please sign in to comment.