Repository navigation
feat : 프론트 주소를 여러 개 허용, OAuth 결과를 로그인을 시작한 출처로 리다이렉트 - #44
Merged
Merged
Conversation
Backend Code Health ReportCommit:
Attention
|
Collaborator
|
수고하셨습니다 |
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.
변경점 👍
test-fin.duckdns.org)를 로컬 프론트(localhost:5173)와 Vercel 배포본(fin-fe-test-phi.vercel.app)이 함께 사용FRONTEND_URL하나가 CORS 허용 출처이자 OAuth 리다이렉트 주소app.frontend.url→app.frontend.urls(목록)FRONTEND_URL에 쉼표로 여러 주소 지정FrontendOrigins)/oauth2/authorization/*요청의 Referer 출처가 목록에 있으면 세션에 저장window.location이동이라 Referer 자동 포함, 프론트 수정 불필요fe.example.com.evil.com같은 접두사, 다른 포트·스킴 거부)auth-and-access.md,deployment.md의FRONTEND_URL설명 갱신테스트 💻
FrontendOriginsTest(단위 13개)FrontendOriginsIntegrationTest(통합 3개, 주소 2개 설정)test280개,integrationTest118개 통과redirectBase사용, 머지 후 실제 로그인으로 확인 예정머지 후 체크리스트
dev의FRONTEND_URL을https://fin-fe-test-phi.vercel.app,http://localhost:5173로 변경 후 배포 재실행VITE_API_BASE_URL을https://test-fin.duckdns.org로 변경 후 재배포localhost:5173에서/api/categories호출, Google·Kakao 로그인 확인