Skip to content

Commit

Permalink
HOTFIX: cors 설정 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
hyxklee committed Dec 2, 2024
1 parent 61b877c commit 553ff7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/leets/weeth/global/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {


@Bean
public CorsConfigurationSource source() {
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();

configuration.setAllowedOrigins(Arrays.asList("http://localhost:3000", "https://3.38.193.157.nip.io"));
configuration.setAllowedOriginPatterns(Arrays.asList("http://localhost:3000", "https://3.38.193.157.nip.io"));
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PATCH", "DELETE", "OPTIONS"));
configuration.setAllowedHeaders(Arrays.asList("*"));
configuration.setExposedHeaders(Arrays.asList("Authorization", "Authorization_refresh"));
Expand Down

0 comments on commit 553ff7e

Please sign in to comment.