Skip to content

Commit

Permalink
Merge pull request #41 from TEAM-DHS/deploy/cors
Browse files Browse the repository at this point in the history
[FIX] CORS 에러 해결
  • Loading branch information
mingulmangul authored Nov 22, 2023
2 parents 01af29f + 7241fbe commit b134b8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/efub/dhs/global/config/CorsConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ public void addCorsMappings(CorsRegistry registry) {
"https://api.daehaengsa.kro.kr",
"http://localhost:3000",
"https://daehaengsa.kro.kr")
.allowedMethods("GET", "POST")
.allowedMethods("*")
.allowCredentials(true)
.maxAge(3000);
}
}

0 comments on commit b134b8d

Please sign in to comment.