안드로이드 카카오톡 인앱 브라우저 nginx basic auth 관련 문의

안녕하세요
nginx basic auth 를 이용해 간단히 페이지 접속 전 로그인 처리를 하려 했으나
안드로이드 카카오톡 인앱 브라우저에서는 로그인 팝업이 뜨지 않고 401 에러페이지가 나타나고 있어 문의드립니다
ios 카카오톡 인앱 브라우저에서는 정상적으로 로그인 팝업이 뜨고 있습니다

해결해보고자 했지만 제가 놓치고 있는 부분이 있을까 하여 여기까지 오게 되었습니다
관련하여 원인을 알고 계신 분이 있으시다면 알려주시면 감사하겠습니다
아래는 ios / android 순으로 nginx request error debug 로그입니다 (일부 정보는 제거하였습니다)

// ios
http process request line
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http request line: "GET /HTTP/1.1"
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http uri: "/"
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http args: ""
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http exten: ""
2024/01/10 09:52:11 [debug] 61893#61893: *11865 posix_memalign: 000055C59DAC08A0:4096 @16
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http process request header line
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http header: "X-Forwarded-For: "
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http header: "X-Forwarded-Proto: https"
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http header: "X-Forwarded-Port: 443"
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http header: "Host: ktng.atomom.kr"
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http header: "X-Amzn-Trace-Id: Root=1-"
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http header: "accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http header: "sec-fetch-site: none"
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http header: "accept-encoding: gzip, deflate, br"
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http header: "sec-fetch-mode: navigate"
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http header: "user-agent: Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 KAKAOTALK 10.4.7"
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http header: "accept-language: ko-KR,ko;q=0.9"
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http header: "sec-fetch-dest: document"
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http header done
2024/01/10 09:52:11 [debug] 61893#61893: *11865 event timer del: 4: 1095577717
2024/01/10 09:52:11 [debug] 61893#61893: *11865 generic phase: 0
2024/01/10 09:52:11 [debug] 61893#61893: *11865 rewrite phase: 1
2024/01/10 09:52:11 [debug] 61893#61893: *11865 test location: "/"
2024/01/10 09:52:11 [debug] 61893#61893: *11865 test location: ""
2024/01/10 09:52:11 [debug] 61893#61893: *11865 test location: ""
2024/01/10 09:52:11 [debug] 61893#61893: *11865 using configuration "/"
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http cl:-1 max:20971520
2024/01/10 09:52:11 [debug] 61893#61893: *11865 rewrite phase: 3
2024/01/10 09:52:11 [debug] 61893#61893: *11865 post rewrite phase: 4
2024/01/10 09:52:11 [debug] 61893#61893: *11865 generic phase: 5
2024/01/10 09:52:11 [debug] 61893#61893: *11865 generic phase: 6
2024/01/10 09:52:11 [debug] 61893#61893: *11865 generic phase: 7
2024/01/10 09:52:11 [debug] 61893#61893: *11865 access phase: 8
2024/01/10 09:52:11 [debug] 61893#61893: *11865 access phase: 9
2024/01/10 09:52:11 [info] 61893#61893: *11865 no user/password was provided for basic authentication, 
client: , server: , request: "GET /HTTP/1.1", host: ""
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http finalize request: 401, "/?" a:1, c:1
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http special response: 401, "/?"
2024/01/10 09:52:11 [debug] 61893#61893: *11865 http set discard body
2024/01/10 09:52:11 [debug] 61893#61893: *11865 xslt filter header
2024/01/10 09:52:11 [debug] 61893#61893: *11865 charset: "" > "utf-8"
2024/01/10 09:52:11 [debug] 61893#61893: *11865 HTTP/1.1 401 Unauthorized
Server: nginx/1.18.0 (Ubuntu)
Date: Wed, 10 Jan 2024 00:52:11 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 188
Connection: keep-alive
WWW-Authenticate: Basic realm="로그인 ! "

// android
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http process request line
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http request line: "GET / HTTP/1.1"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http uri: "/"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http args: ""
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http exten: ""
2024/01/10 09:52:33 [debug] 61893#61893: *11871 posix_memalign: 000055C59DAC08A0:4096 @16
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http process request header line
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http header: "X-Forwarded-For: "
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http header: "X-Forwarded-Proto: https"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http header: "X-Forwarded-Port: 443"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http header: "Host: ktng.atomom.kr"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http header: "X-Amzn-Trace-Id: Root=1-"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http header: "upgrade-insecure-requests: 1"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http header: "user-agent: Mozilla/5.0 (Linux; Android 13; SM-F926N Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/120.0.6099.193 Mobile Safari/537.36;KAKAOTALK 2610470"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http header: "accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http header: "x-requested-with: com.kakao.talk"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http header: "sec-fetch-site: none"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http header: "sec-fetch-mode: navigate"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http header: "sec-fetch-user: ?1"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http header: "sec-fetch-dest: document"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http header: "sec-ch-ua: "Not_A Brand";v="8", "Chromium";v="120", "Android WebView";v="120""
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http header: "sec-ch-ua-mobile: ?1"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http header: "sec-ch-ua-platform: "Android""
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http header: "accept-encoding: gzip, deflate, br"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http header: "accept-language: ko-KR,ko;q=0.9,en-US;q=0.8,en;q=0.7"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http header done
2024/01/10 09:52:33 [debug] 61893#61893: *11871 event timer del: 9: 1095600436
2024/01/10 09:52:33 [debug] 61893#61893: *11871 generic phase: 0
2024/01/10 09:52:33 [debug] 61893#61893: *11871 rewrite phase: 1
2024/01/10 09:52:33 [debug] 61893#61893: *11871 test location: "/"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 test location: ""
2024/01/10 09:52:33 [debug] 61893#61893: *11871 test location: ""
2024/01/10 09:52:33 [debug] 61893#61893: *11871 using configuration "/"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http cl:-1 max:20971520
2024/01/10 09:52:33 [debug] 61893#61893: *11871 rewrite phase: 3
2024/01/10 09:52:33 [debug] 61893#61893: *11871 post rewrite phase: 4
2024/01/10 09:52:33 [debug] 61893#61893: *11871 generic phase: 5
2024/01/10 09:52:33 [debug] 61893#61893: *11871 generic phase: 6
2024/01/10 09:52:33 [debug] 61893#61893: *11871 generic phase: 7
2024/01/10 09:52:33 [debug] 61893#61893: *11871 access phase: 8
2024/01/10 09:52:33 [debug] 61893#61893: *11871 access phase: 9
2024/01/10 09:52:33 [info] 61893#61893: *11871 no user/password was provided for basic authentication, 
client: , server: , request: "GET / HTTP/1.1", host: ""
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http finalize request: 401, "/?" a:1, c:1
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http special response: 401, "/?"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 http set discard body
2024/01/10 09:52:33 [debug] 61893#61893: *11871 xslt filter header
2024/01/10 09:52:33 [debug] 61893#61893: *11871 charset: "" > "utf-8"
2024/01/10 09:52:33 [debug] 61893#61893: *11871 HTTP/1.1 401 Unauthorized
Server: nginx/1.18.0 (Ubuntu)
Date: Wed, 10 Jan 2024 00:52:33 GMT
Content-Type: text/html; charset=utf-8
Content-Length: 590
Connection: keep-alive
WWW-Authenticate: Basic realm="로그인 ! "

안녕하세요.

아쉽지만, 기본적으로 android webview 에서 해당 기능은 제공되지 않습니다.

1개의 좋아요

앗 감사합니다!