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

reverse proxy 환경에서 카카오 계정 요청 주소가 잘못 보내지는 것 같습니다. #21

Open
mbh77 opened this issue Nov 11, 2020 · 1 comment

Comments

@mbh77
Copy link

mbh77 commented Nov 11, 2020

www.abc.com:8001 같은 포트 노출을 막기 위해
IIS 웹서버 URL 재작성 기능을 사용하여 역방향 프록시를 설정하였습니다.

접속 주소에 포트 번호를 입력하고 접속해서 카카오 로그인 기능을 사용하면 정상 동작하는데
역방향 프록시 기능을 사용하여 포트 번호 없이 접속하면 404 에러가 발생합니다.

개발자 도구로 내용을 살펴 보니 역방향 프록시로 서비스할 때는 요청 주소가
아래와 같이 잘못 보내지고 있습니다.

포트 번호 사용 시-정상동작
https://kauth.kakao.com/oauth/authorize?response_type=code&redirect_uri=http%3A%2F%2Fwww.bado.co.kr%3A52273%2Fauth%2Fkakao%2Fcallback&client_id=

포트 번호 없이(역방향 프록시)-404에러
http://www.bado.co.kr/oauth/authorize?response_type=code&redirect_uri=http%3A%2F%2F127.0.0.1%3A52273%2Fauth%2Fkakao%2Fcallback&client_id=

혹시 이유나 대응 방법을 알 수 있을까요?

@rotoshine
Copy link
Owner

안녕하세요. 제가 이슈가 올라온지 모르고 있었어서 확인이 너무 늦었네요.

테스트 해보도록 하겠습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants