Https://dapi.kakao.com/v2/search/vclip CORS 저만 안 되나요

이상하게 코드에 문제가 뜨네요…
어…음… 혹시 뭔가 변경된 것이 있나요?

저희 테스트 서버가 문제가 있는가 싶어서
다른 테스트 서버에서도 아래 함수로
간단하게 CORS 날려보고 있는데

$.ajax({
url: ‘https://dapi.kakao.com/v2/search/vclip?query=음주’,
headers: { ‘Authorization’: ‘KakaoAK 인증키’},
type: ‘GET’
}).done(function(data) {
console.log(data)
})

아래와 같은 메시지가 출력되고 있습니다.
혹시 해당 API 가 deprecated 되었나요?

/#?client_method=GET&client_credentials=false&client_headers=Authorization%3A%20KakaoAK2인증키server_enable=true&server_status=200&server_credentials=false&server_tabs=remote:1 XMLHttpRequest cannot load https://dapi.kakao.com/v2/search/vclip?query=%26%2351020%3B%26%2351452%3B.

Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘https://www.test-cors.org’ is therefore not allowed access. The response had HTTP status code 401.

1개의 좋아요

자체해결하였습니다.
기본 앱세팅에서 추가했던
원래 접근 하기로한 도메인 경로가 변경되었는데
이를 반영하지 않은 상태에서 발생한 문제였습니다.