Skip to content

[FEAT] 개발환경에서도 되도록 추가 CORS#99

Merged
LimdaeIl merged 1 commit intomainfrom
feat/cors-update
Dec 12, 2025
Merged

[FEAT] 개발환경에서도 되도록 추가 CORS#99
LimdaeIl merged 1 commit intomainfrom
feat/cors-update

Conversation

@LimdaeIl
Copy link
Collaborator

@LimdaeIl LimdaeIl commented Dec 12, 2025

📝 Pull Request

📌 PR 종류

해당하는 항목에 체크해주세요.

  • 기능 추가 (Feature)
  • 버그 수정 (Fix)
  • 문서 수정 (Docs)
  • 코드 리팩터링 (Refactor)
  • 테스트 추가 (Test)
  • 기타 변경 (Chore)

✨ 변경 내용

[FEAT] 개발환경에서도 되도록 추가 CORS


🔍 관련 이슈

🧪 테스트

변경된 기능에 대한 테스트 범위 또는 테스트 결과를 작성해주세요.

  • 유닛 테스트 추가 / 수정
  • 통합 테스트 검증
  • 수동 테스트 완료

🚨 확인해야 할 사항 (Checklist)

PR을 제출하기 전에 아래 항목들을 확인해주세요.

  • 코드 포매팅 완료
  • 불필요한 파일/코드 제거
  • 로직 검증 완료
  • 프로젝트 빌드 성공
  • 린트/정적 분석 통과 (해당 시)

🙋 기타 참고 사항

리뷰어가 참고하면 좋을 만한 추가 설명이 있다면 적어주세요.

Summary by CodeRabbit

릴리스 노트

  • 설정 및 유지보수
    • 로컬 개발 도메인에서의 크로스 오리진 요청을 지원하도록 CORS 설정이 업데이트되었습니다.

✏️ Tip: You can customize this high-level summary in your review settings.

@LimdaeIl LimdaeIl self-assigned this Dec 12, 2025
Copilot AI review requested due to automatic review settings December 12, 2025 04:54
@LimdaeIl LimdaeIl added the ✨enhancement New feature or request label Dec 12, 2025
@LimdaeIl LimdaeIl moved this from Backlog to In progress in WeGo-Together Backend Dec 12, 2025
@coderabbitai
Copy link

coderabbitai bot commented Dec 12, 2025

Caution

Review failed

The pull request is closed.

개요

두 개의 CORS 설정 파일에 로컬 개발 환경용 오리진을 추가했습니다. CorsConfig에는 포트 3000을 포함한 오리진을 추가하고, SecurityConfig에는 포트 없는 오리진과 포트를 포함한 오리진을 모두 추가했습니다.

변경 사항

코호트 / 파일 변경 요약
CORS 오리진 추가
src/main/java/team/wego/wegobackend/common/config/CorsConfig.java
"https://local.wego.monster:3000" 오리진을 허용 목록에 추가
CORS 오리진 추가
src/main/java/team/wego/wegobackend/common/security/SecurityConfig.java
"https://local.wego.monster"과 "https://local.wego.monster:3000" 오리진을 허용 목록에 추가

코드 리뷰 예상 소요 시간

🎯 1 (Trivial) | ⏱️ ~5분

  • 주목 사항: SecurityConfig에서 동일한 오리진 "https://local.wego.monster"이 중복으로 추가되었는지 확인 필요 (이미 존재하는 경우 제거 검토)

관련 이슈

축하 시

🐰 로컬 호스트를 위한 문이 열렸네!
포트 3000으로 달려가
개발 속도는 쌩~ 빨라졌어요! 🚀
CORS 설정, 완벽하게 고쳤어! ✨

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/cors-update

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between fd9771c and 61fc26d.

📒 Files selected for processing (2)
  • src/main/java/team/wego/wegobackend/common/config/CorsConfig.java (1 hunks)
  • src/main/java/team/wego/wegobackend/common/security/SecurityConfig.java (1 hunks)

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@LimdaeIl LimdaeIl merged commit ff87025 into main Dec 12, 2025
2 of 3 checks passed
@LimdaeIl LimdaeIl deleted the feat/cors-update branch December 12, 2025 04:54
@github-project-automation github-project-automation bot moved this from In progress to Done in WeGo-Together Backend Dec 12, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds CORS configuration for the local development environment by including https://local.wego.monster:3000 as an allowed origin. The change is applied consistently across both CORS configuration locations.

  • Adds new allowed origin https://local.wego.monster:3000 to support local development environment

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
SecurityConfig.java Adds https://local.wego.monster:3000 to the CORS allowed origins list in Spring Security configuration
CorsConfig.java Adds https://local.wego.monster:3000 to the CORS allowed origins list in web MVC configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +73 to +74
"https://local.wego.monster",
"https://local.wego.monster:3000"));
Copy link

Copilot AI Dec 12, 2025

Choose a reason for hiding this comment

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

The origin https://local.wego.monster:3000 uses HTTPS protocol with port 3000, which is unusual. Port 3000 is typically used for HTTP development servers (like the existing http://localhost:3000 entry). If this is intended for local development, it should likely be http://local.wego.monster:3000 instead. If HTTPS is intentional, verify that the local development server is actually configured to run HTTPS on port 3000.

Suggested change
"https://local.wego.monster",
"https://local.wego.monster:3000"));
"https://local.wego.monster"));

Copilot uses AI. Check for mistakes.
Comment on lines +20 to +21
"https://local.wego.monster",
"https://local.wego.monster:3000"
Copy link

Copilot AI Dec 12, 2025

Choose a reason for hiding this comment

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

The origin https://local.wego.monster:3000 uses HTTPS protocol with port 3000, which is unusual. Port 3000 is typically used for HTTP development servers (like the existing http://localhost:3000 entry). If this is intended for local development, it should likely be http://local.wego.monster:3000 instead. If HTTPS is intentional, verify that the local development server is actually configured to run HTTPS on port 3000.

Suggested change
"https://local.wego.monster",
"https://local.wego.monster:3000"
"https://local.wego.monster"

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[FEAT] 개발환경에서도 되도록 추가 CORS

1 participant

Comments