Skip to content

Commit

Permalink
Merge pull request #126 from minseok1015/dev
Browse files Browse the repository at this point in the history
feat  : cors추가
  • Loading branch information
minseok1015 authored Aug 18, 2024
2 parents 26907cd + 09cd4f6 commit 3dd16a8
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/main/java/store/itpick/backend/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@ public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers)



// @Override
// public void addCorsMappings(CorsRegistry registry) {
// registry.addMapping("/**")
// .allowedOrigins("http://localhost:3000", "http://localhost:5173", "https://localhost:5173", "https://itpick.netlify.app")
// .allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH","OPTIONS")
// .exposedHeaders("location", "Authorization")
// .allowedHeaders("Content-Type", "Authorization", "X-Requested-With", "Accept")
// .allowCredentials(true);
// }
@Override
public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("http://localhost:3000", "http://localhost:5173", "https://localhost:5173", "https://itpick.netlify.app","https://itpick.vercel.app/")
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH","OPTIONS")
.exposedHeaders("location", "Authorization")
.allowedHeaders("Content-Type", "Authorization", "X-Requested-With", "Accept")
.allowCredentials(true);
}



Expand Down

0 comments on commit 3dd16a8

Please sign in to comment.