Skip to content

Commit

Permalink
Merge pull request #112 from minseok1015/dev
Browse files Browse the repository at this point in the history
feat : OPTION 추가, 슬래시 제거
  • Loading branch information
minseok1015 authored Aug 17, 2024
2 parents 81655e3 + 27a4a91 commit 796f513
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/store/itpick/backend/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers)
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOriginPatterns("http://localhost:3000/", "http://localhost:5173/", "https://localhost:5173/",
.allowedOriginPatterns("http://localhost:3000", "http://localhost:5173", "https://localhost:5173",
"https://itpick.netlify.app")
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH")
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH","OPTIONS")
.exposedHeaders("location", "Authorization")
.allowedHeaders("*")
.allowedHeaders("Content-Type", "Authorization", "X-Requested-With", "Accept")
.allowCredentials(true);
}

Expand Down

0 comments on commit 796f513

Please sign in to comment.