Skip to content

Commit

Permalink
Merge pull request #100 from ho0010/dev
Browse files Browse the repository at this point in the history
Fix: cors
  • Loading branch information
ho0010 authored Aug 16, 2024
2 parents 712a36b + a710b6d commit 07f3a24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/store/itpick/backend/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("https://itpick.netlify.app/")
.allowedMethods("GET", "POST", "PUT", "DELETE", "HEAD")
.allowedHeaders("Authorization", "Content-Type")
.allowCredentials(true);
}
}

0 comments on commit 07f3a24

Please sign in to comment.