Skip to content

Commit

Permalink
#57 [FIX] dev 서버 CORS allowdOrigins all로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
05AM committed Aug 15, 2023
1 parent 6470ebd commit 978c5ae
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,11 @@ public void addCorsMappings(CorsRegistry registry) {
registry.addMapping("/**")
// Header의 Origin에 들어있는 주소가 아래 주소인 경우를 허용한다
.allowedOrigins(
"https://api.tattour.shop",
"http://api.tattour.shop",
"https://tattour.kr",
"https://dev.tattour.shop",
"http://localhost:8080",
"http://localhost:5173",
"http://127.0.0.1:5173")
"*"
// "https://tattour.kr",
// "https://api.tattour.shop",
// "https://dev.tattour.shop"
)
.allowedHeaders()
// 모든 HTTP Method를 허용한다.
.allowedMethods("*")
Expand Down

0 comments on commit 978c5ae

Please sign in to comment.