에러메세지
GET https://dapi.kakao.com/v2/search/web 401 (Unauthorized)
{errorType: “AccessDeniedError”, message: “cannot find Authorization : KakaoAK header”}
errorType: "AccessDeniedError"
message: “cannot find Authorization : KakaoAK header”
코드
axios.get("https://dapi.kakao.com/v2/search/web",
{data: {"query": "K"}},
{headers: {"Authorization": "KakaoAK dfa03086c4a2134d8fe234a777eaa281"}})
.then(function (response) {
console.log(response.documents[0].title);
console.log(response.documents[0].thumbnail);})
계속 401에러가 뜨네요 ㅠㅠ 도와주세요