0
AWS API 게이트웨이와 AWS Cognito User 풀을 통합했습니다. 다음 컬 명령이 작동합니다.AWS API 게이트웨이 인증 실패
그러나 인증은 다음 Angulesjs $ 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로 설정해야합니다 "사용자가 인증되지 않은 것입니다"보여?