Skip to content

Commit

Permalink
Merge pull request #19 from pick-time/feature/fix-cors
Browse files Browse the repository at this point in the history
cors content type 추가
  • Loading branch information
comody authored Jul 14, 2023
2 parents d9e860d + c5aedc2 commit b01a89f
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 b01a89f

Please sign in to comment.