Я пытаюсь отправить запрос в оксфордский словарь api, но не могу передать заголовки авторизации.
Это функция, которую я написал
function testResults (form) {
var TestVar = form.inputbox.value;
alert ("You typed: " + TestVar);
var url='https://od-api.oxforddictionaries.com:443/api/v1/';
url = url+"?word_id="+encodeURIComponent(TestVar);
word=fetch(url, {
method: 'GET',
mode: 'no-cors',
headers: new Headers({
'app_id': 'id',
'app_key': 'key'
})
})
word.then(function(response){
console.log(response)
return response.json();
}).then(function(resJson){
console.log(resJson);
})
}
Я не вижу его в передаваемых инструментах разработчика и получаю ответ 403,