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 6d8cec6 commit f68fe38
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
public CorsConfigurationSource source() {
CorsConfiguration configuration = new CorsConfiguration();

configuration.setAllowedOrigins(Arrays.asList("http://localhost:3000"));
configuration.setAllowedOrigins(Arrays.asList("http://localhost:3000", "http://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 f68fe38

Please sign in to comment.