Skip to content

Commit

Permalink
Merge pull request #4 from MARKETFUBY/feat/search
Browse files Browse the repository at this point in the history
chore: cors 수정
  • Loading branch information
choiyounji authored Nov 14, 2023
2 parents 3b8a3e0 + a87b991 commit 1928eaa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/MARKETFUBY/Global/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public class WebConfig implements WebMvcConfigurer {
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:3000")
.allowedMethods("*");
.allowedMethods("*")
.allowCredentials(true) // 쿠키 인증 요청 허용
.maxAge(3600); // 원하는 시간만큼 pre-flight 리퀘스트를 캐싱
}
}

0 comments on commit 1928eaa

Please sign in to comment.