Skip to content

Commit

Permalink
Merge pull request #87 from Codiary-UMC-6th/feature/#79-myPage
Browse files Browse the repository at this point in the history
Chore: cors 설정
  • Loading branch information
yumzen authored Aug 5, 2024
2 parents 91b9a1d + a23b794 commit 73888cf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration config = new CorsConfiguration();
config.setAllowCredentials(true);
config.setAllowedOriginPatterns(List.of("*"));
config.setAllowedOriginPatterns(List.of("*", "http://localhost:3000"));
config.setAllowedOrigins(List.of("http://localhost:3000"));
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
config.setAllowedHeaders(List.of("*"));
config.setExposedHeaders(List.of("*"));
Expand Down

0 comments on commit 73888cf

Please sign in to comment.