-
Couldn't load subscription status.
- Fork 816
Closed
Description
Hi,
I am writing an AngularJS application that consumes mi REST Framework APIs.
I am using DOT as oAuth2 provider.
The problem is that the same request sent with cURL is successful, once it is sent with an XHR request I get:
{ "error": "unsupported_grant_type" }
I suspected an encoding problem, so I tried to change headers putting:
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8'
But it doesn't work...
For precision's sake, XHR requests are sent with Restangular.
Thank you in advance