Skip to content

Commit

Permalink
fix: CORS allowedOrigins에 localhost 추가 (#254)
Browse files Browse the repository at this point in the history
  • Loading branch information
leeeeeyeon committed Jul 29, 2024
1 parent a4e7a02 commit 017d0da
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ 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("localhost:3000", "https://packyforyou.com",
"https://dev.packyforyou.com")
.maxAge(3600);
}
}

0 comments on commit 017d0da

Please sign in to comment.