У меня встроенный AWS API Gateway с AWS Cognito User pool. Выполняется следующая команда curl.Ошибка авторизации с помощью AWS API Gateway
curl -X PUT -H "Authorization:<id token>" -d <json data> <https url>
Однако авторизация не выполняется со следующим URL-адресом Angularjs $ http.put. AWS журналы cloudwatch показать «пользователь является несанкционированным»
$http.defaults.headers.common['Authorization'] = token
$http.put('https://<url>', <json data>)
.then(function (data, status, headers, config) {
console.log('success')
}, function (data, status, headers, config) {
console.log('failure')
});
Как следует маркер авторизации можно установить с $ http.put?