【发布时间】:2017-10-10 01:49:51
【问题描述】:
我必须添加标头访问令牌
$scope.dropzoneConfig = {
'options': { // passed into the Dropzone constructor
'url': 'SOME API URL' + $scope.SOME_ID
},
'eventHandlers': {
'sending': function (file, xhr, formData) {
},
'success': function (file, response) {
}
}};
我的标头访问令牌是
{ headers: { 'Authorization': 'Bearer ' + $scope.access_token } }
我需要将此添加到我尝试调用的 url 或 api 中
【问题讨论】:
-
你能尝试一下标题吗:{ 'Authorization': 'Bearer' + $scope.access_token }
标签: javascript angularjs access-token dropzone.js