Skip to content

Commit

Permalink
fix(#125) : Webconfig 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
aeeazip committed Aug 23, 2023
1 parent b70cd45 commit 692e73f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/trothly/trothcam/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ public class WebConfig implements WebMvcConfigurer {
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns("http://localhost:8080","http://localhost:3000", "https://trothly.com") // 허용할 출처
.allowedOrigins("http://localhost:8080","http://localhost:3000", "https://trothly.com") // 허용할 출처
.allowedMethods("*") // 허용할 HTTP method
.allowCredentials(true) // 쿠키 인증 요청 허용
.allowedHeaders("*")
.allowedOrigins("*")
.maxAge(3600L); // 원하는 시간만큼 pre-flight 리퀘스트를 캐싱
}
}

0 comments on commit 692e73f

Please sign in to comment.