Skip to content

Commit

Permalink
fix: preflight 결과 캐시 저장을 위한 CORS maxAge 설정 추가 (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeeeyeon authored Jul 27, 2024
1 parent 660a538 commit a4e7a02
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedHeaders("*")
.allowedMethods("HEAD", "OPTIONS", "GET", "POST", "PUT", "PATCH", "DELETE")
.allowedOrigins("https://packyforyou.com", "https://dev.packyforyou.com");
.allowedOrigins("https://packyforyou.com", "https://dev.packyforyou.com")
.maxAge(3600);
}
}

0 comments on commit a4e7a02

Please sign in to comment.