현재 제가 사용 중인 api 저작권을 보고 있는데
Every API request should have a User-Agent header with your app name. If you don’t provide it, we may ban your requests.
사용자 에이전트 헤더에 현재 app 이름을 넣어줘야 된다고 합니다.
무슨 뜻인지 잘 모르겠는데
jquery ajax로 예를 들면
$.ajax({type: "GET",
url: `api/url`,
dataType: "json",
contentType: "application/json; charset=utf-8",
headers: {"User-Agent": "myappname"}
}).done(function (result) {
//
}).fail(function (error) {
console.log(JSON.stringify(error));
});
이런식으로 넣어주는게 맞나요?
API 사용등록할때 앱 이름 등록하는게 있거나 고유 번호를 던져주거나 한거 아님?
jquery ajax header 는 저렇게 넣어주면 됨