Skip to content

Commit

Permalink
Merge pull request #143 from minseok1015/dev
Browse files Browse the repository at this point in the history
feat : cors추가
  • Loading branch information
minseok1015 authored Aug 19, 2024
2 parents e5b4dbb + 25b877b commit fe94772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/store/itpick/backend/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public void addArgumentResolvers(List<HandlerMethodArgumentResolver> resolvers)
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")
.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")
.allowedMethods("GET", "POST", "PUT", "DELETE", "PATCH","OPTIONS")
.exposedHeaders("location", "Authorization")
.allowedHeaders("Content-Type", "Authorization", "X-Requested-With", "Accept")
Expand Down

0 comments on commit fe94772

Please sign in to comment.