Skip to content

Commit

Permalink
fix: cors필터 헤더 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
eckrin committed Oct 7, 2023
1 parent 0eea35b commit 38718cf
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
// Cors 허용 패턴
CorsConfiguration config = new CorsConfiguration();
config.setAllowedOrigins(List.of("http://localhost:3000", "https://diamond-hackathon-kutisms.vercel.app"));
config.setAllowedHeaders(List.of("*"));
config.setAllowedMethods(List.of("*"));
config.setAllowCredentials(true);

Expand Down

0 comments on commit 38718cf

Please sign in to comment.