Skip to content

Commit

Permalink
Merge pull request #18 from Kusitms-28th-Meetup-D/feature/17-cors
Browse files Browse the repository at this point in the history
[fix] cors 포트 추가
  • Loading branch information
OJOJIN authored Oct 30, 2023
2 parents 3bb3666 + 434f6e2 commit 1715b3f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public void addCorsMappings(CorsRegistry registry) {
// 모든 경로에 앞으로 만들 모든 CORS 정보를 적용한다
registry.addMapping("/**")
// Header의 Origin에 들어있는 주소가 http://localhost:3000인 경우를 허용한다
.allowedOrigins("http://localhost:3000")
.allowedOrigins("http://localhost:3000", "http://localhost:5173")
// 모든 HTTP Method를 허용한다.
.allowedMethods("*")
// HTTP 요청의 Header에 어떤 값이든 들어갈 수 있도록 허용한다.
Expand Down

0 comments on commit 1715b3f

Please sign in to comment.