Getting 403 forbidden error, even though I am giving the right crendentials

please tell me how to send a request if below code is wrong

var settings = {
url: getBaseURL() + /search/en?q=${searchWord}&prefix=true,
method: "GET",
headers: {
app_id: process.env.REACT_APP_OD_APP_ID,
app_key: process.env.REACT_APP_OD_API_KEY
}
};
$.ajax(settings).done(function(response) {
console.log(response);
});

Answers

Sign In or Register to comment.