Skip to content

Commit

Permalink
cors content type 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
comody committed Jul 14, 2023
1 parent c0a88b1 commit c5aedc2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/teo15/picktimebe/config/WebConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
.allowedOrigins("https://pick-time.vercel.app", "http://192.168.219.101:3000", "http://localhost:3000")
.allowedMethods("*")
.allowedHeaders("Content-Type")
.exposedHeaders("Content-Type")
.allowCredentials(true)
.maxAge(3000);
}
}

0 comments on commit c5aedc2

Please sign in to comment.