Srinivas M

Srinivas M

  • 1.2k
  • 435
  • 27.5k

when sending post request from angular to webapi ?

Nov 4 2017 1:59 PM
when sending post request from angular to webapi 
 
http://localhost:31397/oauth/token
 
header:
Content-Type:application/x-www-form-urlencoded
 
body:
username:SuperPowerUser
password:S@12345r
grant_type:password
 
getting  below  error:
 ERROR Response {_body: "{"error":"unsupported_grant_type"}", status: 400, ok: false, statusText: "Bad Request", headers: Headers, …}

Answers (1)