Angular-JWT Authorization Header Exception
I've been trying to integreate Cloudinary via angular-upload into my AngularJS app. However, I have encountered this error when attempting to upload from my app: Authorization is
Solution 1:
jwtInterceptor checks the request for a skipAuthorization
flag, and does not send the Authorization header if it was set to true
.
Build your $http call like
$http({
url: 'https://api.cloudinary.com/v1_1/',
skipAuthorization: true,
method: 'POST',
// ... etc
}).then(successCallback, errorCallback);
- More at angular-jwt Docs
Post a Comment for "Angular-JWT Authorization Header Exception"