Authority issue

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

You can refer the following topic for the domain setting.

https://devtalk.kakao.com/t/redirect-uri/81330

How if i still failed to login due to authority issue after make changes?

Thank you.

‘User information Request API v1’ has deprecated since February 10, 2020. we currently provide ‘User information Request API v2’ service with abundant information.
Please change Request URI from ‘/v1/user/me’ to ‘/v2/user/me’.
Thank you.

We are preparing for the English version of the guide. Until then, please refer to this Korean version of the guide with a little assist from Google Translator.