Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣ 연관된 이슈
Closes #31
#️⃣ 작업 내용
SecurityConfig내에 전역 CORS 설정을 위한corsConfigurationSource빈(Bean) 추가프론트엔드 접근 허용 도메인 추가:
http://localhost:3000https://wagle-client.vercel.app프론트엔드와의 원활한 JWT 토큰 통신을 위해
allowCredentials(true)설정 및Authorization헤더 노출(exposedHeaders) 설정 추가허용할 HTTP 메서드 명시 (GET, POST, PUT, PATCH, DELETE, OPTIONS)
#️⃣ 테스트 결과
#️⃣ 셀프 체크리스트
#️⃣ 리뷰 요구사항
🚨 [중요] 프론트엔드 팀 확인 요청 🚨
본 PR은 머지하기 전에 프론트엔드 측에서 CORS 에러가 완전히 해결되었는지 실제 검증이 필요합니다.
현재 이 PR 브랜치를 기준으로 Dev 서버에 자동 배포(Action)되도록 진행할 예정입니다. 프론트엔드 팀원분들께서는 배포가 완료된 후, 로컬 환경 및 Vercel 배포 환경에서 Dev 서버 API를 호출해 보시고 CORS 에러 없이 정상적으로 데이터를 주고받는지(토큰 포함) 확인 부탁드립니다. 테스트 결과 문제가 없다면 코멘트 남겨주시고 Approve 해주시면 그때 최종적으로 Merge 하겠습니다!
📎 참고 자료 (Optional)
https://wagle-client.vercel.app/