Skip to content

Commit

Permalink
Fix: cors
Browse files Browse the repository at this point in the history
  • Loading branch information
ho0010 committed Aug 16, 2024
1 parent b5be6df commit a710b6d
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 a710b6d

Please sign in to comment.