Skip to content

Commit

Permalink
Merge pull request #53 from KUSITMS-30th-TEAM-A/fix/#52/cors
Browse files Browse the repository at this point in the history
[fix] : cors origin을 추가한다
  • Loading branch information
bbbang105 authored Nov 7, 2024
2 parents 5ee0b96 + 3a037a5 commit d1bb474
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
@Bean
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOrigins(Arrays.asList("http://localhost:5173", "https://git.hitzone.store"));
configuration.setAllowedOrigins(Arrays.asList("http://localhost:5173", "http://localhost:3000", "https://git.hitzone.store"));
configuration.setAllowedMethods(Collections.singletonList("*"));
configuration.setAllowCredentials(true);
configuration.setAllowedHeaders(Collections.singletonList("*"));
Expand Down

0 comments on commit d1bb474

Please sign in to comment.