Can I know how to solve the authority issue? This is the codes that i use:
<script type="text/javascript" src="https://developers.kakao.com/sdk/js/kakao.min.js"></script>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded",function() {
Kakao.init("964132215abd4dd26f9120cd646f01d2");
Kakao.Auth.createLoginButton({
container : "#kakao-login-btn",success : function(authObj) {
Kakao.API.request({
url : "/v1/user/me",success : function(res) {
document.getElementById("kakaoIdentity").innerHTML = res.id;
document.getElementById("kakaoNickName").innerHTML = res.properties.nickname;
document.getElementById("kakaoProfileImg").src = res.properties.profile_image;
document.getElementById("kakaoThumbnailImg").src = res.properties.thumbnail_image;
},
fail : function(error) {
alert(JSON.stringify(error));
}
});
And I’d like to know if it’s related to the domain that I’m using for the website.
http://localhost:8080