Skip to content

Getting { "error": "unsupported_grant_type" } #127

@affo

Description

@affo

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions