Skip to content

Commit

Permalink
fix: 허용 method 추가 (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjd4204 committed Jan 9, 2024
1 parent 4e04f79 commit 9206a4d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
.cors(corsCustomizer -> corsCustomizer.configurationSource(request -> {
CorsConfiguration cors = new CorsConfiguration();
cors.setAllowedOrigins(List.of("*", "http://localhost:3000", "http://localhost:8080"));
cors.setAllowedMethods(List.of("GET", "POST", "PATCH", "DELETE"));
cors.setAllowedMethods(List.of("GET", "POST", "PATCH", "DELETE", "OPTIONS"));
// cookie 비활성화
cors.setAllowCredentials(false);
// Authorization Header 노출
Expand Down

0 comments on commit 9206a4d

Please sign in to comment.