Skip to content

[chore] dev 환경 앱인토스 미니앱 Origin CORS 허용 추가 - #80

Closed
kyer5 wants to merge 1 commit into
developfrom
chore/dev-toss-cors
Closed

kyer5 wants to merge 1 commit into
developfrom
chore/dev-toss-cors

Conversation

@kyer5

@kyer5 kyer5 commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

📌 개요 (why, what)

  • #76에서 앱인토스 미니앱 Origin을 application-prod.yaml에만 추가해, dev 서버(dev-api.gotggam.com)는 미니앱 Origin을 허용하지 않습니다.
  • dev 서버에 미니앱 Origin으로 preflight 요청을 보내면 403이 반환되어, 앱인토스 콘솔 QR 테스트 환경에서 dev 서버를 호출할 수 없습니다.
  • dev 환경에도 prod와 동일한 미니앱 Origin을 허용했습니다.

🛠️ 구현 방법 (how)

application-dev.yaml의 CORS 허용 Origin에 아래 두 도메인을 추가했습니다.

  • https://gotggam.apps.tossmini.com (실제 서비스 환경)
  • https://gotggam.private-apps.tossmini.com (콘솔 QR 테스트 환경)

🤔 검토한 대안과 선택 이유 (trade-off)

대안 장점 단점 선택 여부
*.apps.tossmini.com Origin만 등록 프론트 SDK(3.6.0)가 실제로 사용하는 Origin만 허용 SDK 3.0.x로 롤백하면 Origin이 달라짐 ✅
*.web.tossmini.com Origin까지 함께 등록 SDK 3.0.x 번들에도 대응 사용하지 않는 Origin까지 허용 ❌ (3.1.0 이상만 사용하므로 불필요)

💭 리뷰 포인트

파일/영역 검토 내용 리뷰 요청 사항
application-dev.yaml dev에서 실제 서비스 환경 Origin(apps)까지 허용 QR 테스트 Origin(private-apps)만 허용할지 의견 부탁드립니다.

📚 Reference (Optional)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • 변경 사항
    • 개발 환경에서 앱인토스 서비스 및 콘솔 QR 테스트 환경의 접속을 허용합니다.

@kyer5
kyer5 requested a review from gihhyeon as a code owner October 26, 2026 12:45
@kyer5 kyer5 added the ⚙️ chore 설정 및 기타 이슈 label Oct 26, 2026
@kyer5 kyer5 self-assigned this Oct 26, 2026
@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between a45f5f3 and 3f071d1.

Files selected for processing: 1
  • src/main/resources/application-dev.yaml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

개발 환경 CORS 허용 목록에 앱인토스 서비스 Origin과 콘솔 QR 테스트 Origin을 추가했습니다.

Changes

개발 환경 CORS 설정

Layer / File(s) Summary
앱인토스 Origin 허용
src/main/resources/application-dev.yaml
개발 환경의 CORS 허용 목록에 https://gotggam.apps.tossmini.com과 https://gotggam.private-apps.tossmini.com을 추가했습니다.

Priority: Normal

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other · Severity of issue fixed: Medium

Possibly related PRs

Merge Risk: Minimal · up to 3f071

The development allowlist now includes both App-in-Toss Origins without changing production configuration. No actionable merge-blocking risk was identified.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed 제목은 dev 환경에 앱인토스 미니앱 Origin의 CORS 허용을 추가한 주요 변경 사항을 정확하고 간결하게 설명합니다.
Description check Passed PR 설명은 변경 목적, 구현 방법, 대안과 선택 이유, 리뷰 포인트를 모두 포함합니다. 추가된 두 Origin과 dev 환경에서 발생한 403 문제도 명확하게 설명합니다.
Linked Issues check Passed [#78] 요구사항: dev 프로파일의 CORS 허용 Origin에 https://gotggam.apps.tossmini.com과 https://gotggam.private-apps.tossmini.com을 추가한다. 헤드 커밋의 src/main/resources/application-dev.yaml의 `app.cors.allowed-origin…
Out of Scope Changes check Passed PR 요약 기준 변경 파일은 src/main/resources/application-dev.yaml 하나이며 변경 줄 수는 +2/-0입니다. 추가된 두 줄은 모두 #78의 요구 Origin입니다. 다른 설정, 코드, 테스트 변경은 확인되지 않았습니다. base blob 읽기가 실패해 diff 원문은 직접 대조하지 못했습니다. 이 한계는 요약과 헤드 파일…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Full details: Linked Issues check

Explanation

[#78] 요구사항: dev 프로파일의 CORS 허용 Origin에 https://gotggam.apps.tossmini.com과 https://gotggam.private-apps.tossmini.com을 추가한다. 헤드 커밋의 src/main/resources/application-dev.yaml의 app.cors.allowed-origins 목록에 두 Origin이 모두 존재합니다. 두 항목은 이슈가 요구한 값과 정확히 일치합니다. 3.0.x 전용 *.web.tossmini.com Origin은 추가되지 않았으며, 이슈도 이를 요구하지 않습니다. 이슈의 요구사항은 설정 변경이므로 자동화 테스트 요구는 없습니다. 기준 커밋(base) blob은 읽을 수 없어 '추가 전 상태'는 PR 요약(+2/-0)으로 확인했습니다. 최종 헤드 상태는 파일 내용으로 직접 확인했습니다.

Full details: Out of Scope Changes check

Explanation

PR 요약 기준 변경 파일은 src/main/resources/application-dev.yaml 하나이며 변경 줄 수는 +2/-0입니다. 추가된 두 줄은 모두 #78의 요구 Origin입니다. 다른 설정, 코드, 테스트 변경은 확인되지 않았습니다. base blob 읽기가 실패해 diff 원문은 직접 대조하지 못했습니다. 이 한계는 요약과 헤드 파일 내용으로 보완했습니다.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

@kyer5

kyer5 commented Oct 26, 2026

Copy link
Copy Markdown
Member Author

미니앱 QA를 prod에서 진행하고 프론트도 prod API를 바라보고 있어 dev CORS 설정이 필요하지 않아 닫습니다. (#79)

@kyer5 kyer5 closed this Oct 26, 2026
@kyer5
kyer5 deleted the chore/dev-toss-cors branch October 26, 2026 12:56
@kyer5
kyer5 removed the request for review from gihhyeon October 27, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚙️ chore 설정 및 기타 이슈

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[chore] dev 환경 앱인토스 미니앱 Origin CORS 허용 추가

1 participant