Skip to content

Commit

Permalink
Merge pull request #156 from minseok1015/dev
Browse files Browse the repository at this point in the history
feat : cors setting off for debugging
  • Loading branch information
minseok1015 authored Nov 15, 2024
2 parents 9273063 + fa9e2a5 commit f97481c
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/main/java/store/itpick/backend/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers)



@Override
public void addCorsMappings(CorsRegistry registry) {
log.info("CorsMapping이 호출 되었습니다.");
registry.addMapping("/**")
.allowedOrigins("http://localhost:3000", "http://localhost:5173", "https://localhost:5173", "https://itpick.netlify.app","https://itpick.vercel.app","https://deploy-preview-107--itpick.netlify.app","https://deploy-preview-85--itpick.netlify.app","https://deploy-preview-99--itpick.netlify.app","https://deploy-preview-129--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) {
// log.info("CorsMapping이 호출 되었습니다.");
// 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 f97481c

Please sign in to comment.