이상하게 코드에 문제가 뜨네요…
어…음… 혹시 뭔가 변경된 것이 있나요?
저희 테스트 서버가 문제가 있는가 싶어서
다른 테스트 서버에서도 아래 함수로
간단하게 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.