Closed jikjoo closed 4 years ago
https://stackoverflow.com/questions/391979/how-to-get-clients-ip-address-using-javascript 여기 보고 참고한 emulator의 IP 반응
fl=34f85 h=www.cloudflare.com ip=175.116.200.137 ts=1596379302.214 visit_scheme=https uag=Mozilla/5.0 (Web0S; Linux) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36 WebAppManager colo=ICN http=http/2 loc=KR tls=TLSv1.3 sni=plaintext warp=off
console.log(location)
으로 확인해본 결과
ancestorOrigins: DOMStringList {length: 0}
origin: "file://com.bangul.app.webos-webos"
protocol: "file:"
host: ""
hostname: ""
port: ""
pathname: "/media/developer/apps/usr/palm/applications/com.bangul.app.webos/index.html"
search: ""
hash: "#/location"
href: "file:///media/developer/apps/usr/palm/applications/com.bangul.app.webos/index.html#/location"
assign: ƒ assign()
reload: ƒ reload()
toString: ƒ toString()
replace: ƒ replace()
valueOf: ƒ valueOf()
Symbol(Symbol.toPrimitive): undefined
__proto__: Location
라서 kakao api 플랫폼에
file://com.bangul.app.webos-webos
등록해보기
emulator 확인 결과 kakao loaded
확인함.
서버 키고 결과 확인하기
location api 문제로, localhost:8080, localhost 같이 등록된 호스트가 아니라서 생기는 문제인거 같음
해결 방안