Skip to content

Commit

Permalink
fix: cors 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin0o0 committed Nov 21, 2023
1 parent 74a198d commit e65c107
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class WebConfiguration implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:3000", "http://localhost:8080", "http://facerain-dev.iptime.org:5000", "https://khumon-study.kro.kr", "https://khumon-edu.kro.kr", "https://khumon-edu.kro.kr:3000", "https://khumon-edu.kro:80")
.allowedOrigins("http://localhost:3000", "http://localhost:8080", "http://facerain-dev.iptime.org:5000", "https://khumon-study.kro.kr:3000", "https://khumon-study.kro.kr:80", "https://khumon-edu.kro.kr", "https://khumon-edu.kro.kr:3000", "https://khumon-edu.kro:80", "https://khumon-edu.kro.kr:8080")
.allowedHeaders("authorization", "User-Agent", "Cache-Control", "Content-Type")
.exposedHeaders("authorization", "User-Agent", "Cache-Control", "Content-Type")
.allowedMethods("*");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public WebSecurityCustomizer webSecurityCustomizer() {
public CorsConfigurationSource corsConfigurationSource() {
CorsConfiguration configuration = new CorsConfiguration();

configuration.setAllowedOrigins(List.of("http://localhost:3000", "http://localhost:8080", "http://facerain-dev.iptime.org:5000", "https://khumon-study.kro.kr", "https://khumon-edu.kro.kr", "https://khumon-edu.kro.kr:3000", "https://khumon-edu.kro:80"));
configuration.setAllowedOrigins(List.of("http://localhost:3000", "http://localhost:8080", "http://facerain-dev.iptime.org:5000", "https://khumon-study.kro.kr:80", "https://khumon-study.kro.kr:3000", "https://khumon-edu.kro.kr", "https://khumon-edu.kro.kr:3000", "https://khumon-edu.kro:80", "https://khumon-edu.kro.kr:8080"));
configuration.addAllowedOriginPattern("*");
configuration.addAllowedMethod("*");

Expand Down

0 comments on commit e65c107

Please sign in to comment.