Conversation
- feat: HTTP/HTTPS 환경에 따라 Secure + SameSite 쿠키 설정을 처리하는 CookieSerializerConfig, ProtocolAwareCookieSerializer 클래스 추가 - chore: Spring 에서 HTTPS 요청을 인식할 수 있도록, nginx 프록시 설정에 X-Forwarded-Proto 헤더 추가 - chore: 프록시 환경에서 HTTPS 인식 가능하도록 forward-headers-strategy 설정
myqewr
approved these changes
Jul 11, 2025
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.
🌱 관련 이슈
📌 작업 내용 및 특이사항
요청 프로토콜(
HTTP/HTTPS)에 따라 세션 쿠키의Secure및SameSite설정을 동적으로 처리하도록CookieSerializerConfig,ProtocolAwareCookieSerializer클래스 추가:
HTTPS-> Secure + SameSite=None 설정:
HTTP-> Secure & SameSite XSpring이 프록시 환경에서HTTPS요청을 인식할 수 있도록,nginx에X-Forwarded-Proto헤더를 추가하고, 테스트 및 로컬 환경에서는 프록시를 사용하지 않아서application-dev.yml에server.forward-headers-strategy: native설정 적용🔍 참고사항
HTTPS환경에서 브라우저가Secure+SameSite=None속성이 없는 세션 쿠키를 저장하지 않는 이슈 해결 목적Nginx→Spring으로 전달되는 요청이 HTTP로 인식되는 문제를 방지하기 위한 설정 포함📚 기타