Skip to content

fix: cors 에러 해결(#35)#36

Merged
hisonghy merged 1 commit intodevelopfrom
bugfix/35
Jul 21, 2025
Merged

fix: cors 에러 해결(#35)#36
hisonghy merged 1 commit intodevelopfrom
bugfix/35

Conversation

@hisonghy
Copy link
Contributor

@hisonghy hisonghy commented Jul 21, 2025

📌 작업 내용 및 특이사항

✅ CORS 문제 해결

  • 클라이언트 로컬 환경에서 API를 테스트할 때 CORS 에러가 발생해 Spring Security CORS 설정 구성
  • WebSecurityConfig cors 설정에 setAllowedOrigins(List<String> origins) 코드를 추가해 로컬/개발 전용 도메인 origin 허용 처리
    : 추후 클라이언트 개발/운영 환경도 배포되면, UrlConstants 에 추가 예정

🌱 관련 이슈


🔍 참고사항(선택)


📚 기타(선택)

* chore: WebSecurityConfig CORS 설정에 setAllowedOrigins()로 로컬/개발 도메인 허용
@hisonghy hisonghy requested a review from chaiminwoo0223 July 21, 2025 10:38
@hisonghy hisonghy self-assigned this Jul 21, 2025
@hisonghy hisonghy added the 🐛bug 버그 발견 및 수정/해결 label Jul 21, 2025
Copy link
Contributor

@chaiminwoo0223 chaiminwoo0223 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

확인했습니다. 머지 부탁드립니다.

@hisonghy hisonghy merged commit 637578e into develop Jul 21, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛bug 버그 발견 및 수정/해결

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛️[BUG]: cors 에러 해결

2 participants