Skip to content

Commit

Permalink
BE: [fix] CORS 화이트리스트 수정 #6
Browse files Browse the repository at this point in the history
BE: [fix] CORS 화이트리스트 수정 #6
  • Loading branch information
JongbeomLee623 authored Nov 26, 2024
2 parents 58fb64b + 73bef03 commit 87ea105
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
@Bean
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOrigins(List.of("http://localhost:3000","http://localhost:8000", "https://eyesee-admin.vercel.app","https://eyesee-exam.vercel.app","http://43.201.224.93:8000")); // 허용할 도메인 설정
configuration.setAllowedOrigins(List.of("http://localhost:3000","http://localhost:8000", "https://eyesee-admin.vercel.app","https://eyesee-exam.vercel.app","https://43.201.224.93.nip.io")); // 허용할 도메인 설정
configuration.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "OPTIONS")); // 허용할 HTTP 메서드
configuration.setAllowedHeaders(List.of("*")); // 모든 헤더 허용
configuration.setAllowCredentials(true); // 인증 정보 포함 여부
Expand Down

0 comments on commit 87ea105

Please sign in to comment.