Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

프론트로 Refresh token을 담고있는 cookie를 보내지 못하는 문제 #35

Open
Anna-Jin opened this issue Jul 18, 2022 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Anna-Jin
Copy link
Member

서버에서 cookie에 refresh token을 담아서 저장하고 있는데, 배포 후에 프론트에서 테스트하려고 하면 cookie가 존재하지 않는다고 뜬다.

@Anna-Jin Anna-Jin added the bug Something isn't working label Jul 18, 2022
@Anna-Jin Anna-Jin self-assigned this Jul 18, 2022
Anna-Jin added a commit that referenced this issue Jul 18, 2022
cookie에 same-site 옵션과 secure 옵션 추가
@Anna-Jin
Copy link
Member Author

첫번째 시도

cookie에 same-site 옵션과 secure 옵션 추가

Anna-Jin added a commit that referenced this issue Jul 19, 2022
서브 도메인 설정해보기
domain 옵션 추가
Anna-Jin added a commit that referenced this issue Jul 19, 2022
OAuth2AuthenticationSuccessHandler 클래스에 있는 isAuthorizedRedirectUri 메소드에서 port 번호를 비교하는 로직 삭제
Anna-Jin added a commit that referenced this issue Jul 19, 2022
쿠키가 삭제되지 않는 문제 해결하기
@geonoo
Copy link

geonoo commented Jul 19, 2022

화이팅..!

@Anna-Jin
Copy link
Member Author

쿠키 삭제 문제 해결

쿠키를 삭제할 때에도 domain과 path 등등의 설정을 함께 추가해서 response에 보내줘야했다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants