Skip to content

Conversation

@JangYeongHu
Copy link
Contributor

Summary

#312

SecurityConfig에 프론트엔드 졸업 시스템 개발 페이지를 포함시켰습니다.

Tasks

  • SecurityConfig에 프론트엔드 졸업 시스템 개발 페이지를 포함시켰습니다.

@JangYeongHu JangYeongHu self-assigned this Jan 5, 2026
@JangYeongHu JangYeongHu added the 🔨refactor refactoring code label Jan 5, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 5, 2026

Walkthrough

SecurityConfig.java의 CORS 설정에서 allowedOriginPatterns에 "https://aics-client-graduate.vercel.app/"을 추가하여 CORS 허용 출처를 확장했습니다. 다른 동작이나 오류 처리 변경사항은 없습니다.

Changes

Cohort / File(s) 변경 요약
CORS 설정 확장
aics-common/src/main/java/kgu/developers/common/config/SecurityConfig.java
allowedOriginPatterns에 graduate 클라이언트 출처 URL 추가

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related issues

Possibly related PRs

  • fix: cors 이슈 픽스 #200: SecurityConfig.java의 corsConfigurationSource 메서드를 수정하여 CORS 허용 출처를 확장하는 동일한 변경 패턴입니다.

Suggested reviewers

  • LeeHanEum
  • dkdltm221

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed 제목이 변경 사항의 핵심을 정확히 설명하고 있습니다. SecurityConfig에 프론트엔드 배포 페이지를 포함시킨 주요 변경 사항을 명확하게 나타냅니다.
Description check ✅ Passed 설명이 변경 사항과 관련이 있습니다. SecurityConfig에 프론트엔드 졸업 시스템 개발 페이지를 추가한 것에 대해 설명하고 있습니다.
✨ Finishing touches
  • 📝 Generate docstrings

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.

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

Test Coverage Report

Overall Project 80.41% 🍏

There is no coverage information present for the Files changed

@codecov
Copy link

codecov bot commented Jan 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop     #313   +/-   ##
==========================================
  Coverage      86.51%   86.51%           
  Complexity        67       67           
==========================================
  Files             24       24           
  Lines            267      267           
  Branches          14       14           
==========================================
  Hits             231      231           
  Misses            24       24           
  Partials          12       12           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f7f36bc...a5dc2c1. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Fix all issues with AI Agents 🤖
In @aics-common/src/main/java/kgu/developers/common/config/SecurityConfig.java:
- Line 105: Remove the trailing slash from the CORS origin entries in
SecurityConfig so Origin matching succeeds; specifically update the strings
"https://aics-client-graduate.vercel.app/" and the other HTTPS URL on the
adjacent line to remove the trailing "/" (i.e., use
"https://aics-client-graduate.vercel.app" etc.), in the allowed origins list /
CorsConfiguration setup within SecurityConfig.java.
📜 Review details

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f7f36bc and a5dc2c1.

📒 Files selected for processing (1)
  • aics-common/src/main/java/kgu/developers/common/config/SecurityConfig.java
🔇 Additional comments (1)
aics-common/src/main/java/kgu/developers/common/config/SecurityConfig.java (1)

105-105: 새로운 graduate URL의 CORS 설정이 코드에 올바르게 구현되었는지 확인 필요

https://aics-client-graduate.vercel.app/ URL이 SecurityConfig.java의 CORS allowedOriginPatterns에 정상적으로 추가되었습니다. 다음을 확인했습니다:

  • URL이 기존 aics-client-dev.vercel.app와 동일한 명명 규칙을 따르고 있음
  • CORS 설정이 올바르게 구현되어 있음 (allowCredentials=true, 메서드 및 헤더 설정 완료)
  • 해당 URL은 코드베이스에서 이 위치 외에 다른 곳에서 참조되지 않음

그러나 다음 사항은 코드 검토만으로는 확인할 수 없으므로 확인이 필요합니다:

  • 이 URL이 실제로 배포되었고 접근 가능한지 여부
  • 팀에서 이 CORS 허용을 공식적으로 승인했는지 여부

"https://aics-admin.kgudevelopers.monster",
"https://aics-auth.kgudevelopers.monster",
"https://aics-client-dev.vercel.app/",
"https://aics-client-graduate.vercel.app/",
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

CORS 패턴의 후행 슬래시 제거 필요

추가된 URL에 후행 슬래시(/)가 포함되어 있습니다. HTTP Origin 헤더는 일반적으로 후행 슬래시를 포함하지 않고 전송되기 때문에(예: https://aics-client-graduate.vercel.app), 이로 인해 CORS 매칭이 실패할 수 있습니다.

또한 Line 101-103의 다른 HTTPS URL들과의 일관성을 위해서도 후행 슬래시를 제거하는 것이 좋습니다. Line 104도 동일한 문제가 있습니다.

🔎 제안하는 수정사항
 			"https://aics-client-dev.vercel.app/",
-			"https://aics-client-graduate.vercel.app/",
+			"https://aics-client-graduate.vercel.app",
 			"http://175.45.195.63",

Line 104의 후행 슬래시도 함께 제거하는 것을 권장합니다:

-			"https://aics-client-dev.vercel.app/",
+			"https://aics-client-dev.vercel.app",
 			"https://aics-client-graduate.vercel.app",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"https://aics-client-graduate.vercel.app/",
"https://aics-client-graduate.vercel.app",
🤖 Prompt for AI Agents
In @aics-common/src/main/java/kgu/developers/common/config/SecurityConfig.java
around line 105, Remove the trailing slash from the CORS origin entries in
SecurityConfig so Origin matching succeeds; specifically update the strings
"https://aics-client-graduate.vercel.app/" and the other HTTPS URL on the
adjacent line to remove the trailing "/" (i.e., use
"https://aics-client-graduate.vercel.app" etc.), in the allowed origins list /
CorsConfiguration setup within SecurityConfig.java.

@JangYeongHu JangYeongHu merged commit bcc6f79 into develop Jan 5, 2026
5 checks passed
@JangYeongHu JangYeongHu deleted the refactor/KD-62 branch January 5, 2026 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨refactor refactoring code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants