-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Labels
버그Something isn't workingSomething isn't working
Description
어떤 버그인가요
문제가 되는 부분에 대해 설명해주세요
🔽 프론트 만옥님이 말씀하신 문제 상황입니다
- 백엔드 도메인 :
api.stage.solid-connection.com - 프론트 도메인 :
www.stage.solid-connection.com
쿠키를 발급하는 서버의 도메인 (api.stage.xxx) 로 자동 설정된다고 합니다.
환경별로 나누어 문제를 해결합니다.
- prod 환경
- 엄격한 보안이 필요
- Domain을 구체적으로 지정
Domain=.solid-connection.com; Path=/; HttpOnly; Secure; SameSite=Strict;
- dev 환경
- localhost 에서도 쿠키 저장이 가능하게 하기 위해, 크로스 사이트 허용 필요
- Domain을 생략 && SameSite=None 설정
Domain=api.stage.solid-connection.com;(생략 시, 자동으로 서버의 도메인 할당됨) Path=/; HttpOnly; Secure; SameSite=Node;
추가로, localhost 에서 테스트하더라도, https 통신을 하도록 cors 허용 리스트에 https://localhost:3000 을 추가합니다
Metadata
Metadata
Assignees
Labels
버그Something isn't workingSomething isn't working