Skip to content

Commit

Permalink
Merge pull request #130 from Yeungnam-Nyang/129-fixhttps-to-http
Browse files Browse the repository at this point in the history
🐛fix:https->http
  • Loading branch information
tkv00 authored Dec 12, 2024
2 parents 17d69d0 + d090daf commit 4bfd1fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/example/YNN/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
@Bean
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOrigins(Arrays.asList("http://127.0.0.1:5173","http://localhost:5173", "http://43.202.47.254:8080","https://yeungnam-nyang.site","http://yeungnam-nyang.site.s3-website-us-east-1.amazonaws.com")); // 명시적으로 허용할 출처
configuration.setAllowedOrigins(Arrays.asList("http://127.0.0.1:5173","http://localhost:5173", "http://43.202.47.254:8080","http://yeungnam-nyang.site","https://yeungnam-nyang.site","http://yeungnam-nyang.site.s3-website-us-east-1.amazonaws.com")); // 명시적으로 허용할 출처
configuration.setAllowedMethods(Arrays.asList("GET", "POST", "PUT", "DELETE", "OPTIONS"));
configuration.setAllowedHeaders(List.of("*"));
configuration.setAllowCredentials(true); // 자격 증명 허용
Expand Down

0 comments on commit 4bfd1fb

Please sign in to comment.