Skip to content

Commit

Permalink
feat : 허용할 도메인 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jsilver01 committed Aug 6, 2024
1 parent 42e7c3f commit d9ba89c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
@Bean
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOrigins(Arrays.asList("http://localhost:3000")); // 허용할 도메인 설정
configuration.setAllowedOrigins(Arrays.asList("http://localhost:3000","https://frontend-ashen-delta.vercel.app/")); // 허용할 도메인 설정
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PATCH", "DELETE", "PUT")); // 허용할 HTTP 메서드 설정
configuration.setAllowedHeaders(Arrays.asList("Authorization", "Cache-Control", "Content-Type")); // 허용할 헤더 설정
configuration.setAllowCredentials(true); // 자격 증명 허용 설정
Expand Down

0 comments on commit d9ba89c

Please sign in to comment.