Skip to content

Commit

Permalink
Merge pull request #85 from cathaaaaand/dev
Browse files Browse the repository at this point in the history
ใ…
  • Loading branch information
EUNCHAEv1006 authored Apr 28, 2024
2 parents fffc37f + 79d2c23 commit 3e0fc5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
.addFilterBefore(jwtAuthorizationFilter(), UsernamePasswordAuthenticationFilter.class) // JWT ์ธ์ฆ ํ•„ํ„ฐ ์ถ”๊ฐ€
.cors(cors -> cors.configurationSource(request -> {
CorsConfiguration corsConfiguration = new CorsConfiguration();
corsConfiguration.setAllowedOrigins(List.of("http://localhost:8080", "https://www.wooriforei.info"));
corsConfiguration.setAllowedOrigins(List.of("http://localhost:8080", "https://www.wooriforei.info", "http://localhost:3000"));
corsConfiguration.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS"));
corsConfiguration.setAllowedHeaders(List.of("*"));
return corsConfiguration;
Expand Down

0 comments on commit 3e0fc5c

Please sign in to comment.