Я хотел получить токен доступа с помощью почтового запроса.
Кто-нибудь может мне помочь, почему это происходит?
let _httpParams = new HttpParams()
.set("username","username")
.set("password","password")
.set("grant_type","password")
let _httpHeader = new HttpHeaders();
_httpHeader = _httpHeader.append("Content-Type", "application/x-www-form-urlencoded");
_httpHeader = _httpHeader.append("Authorization", "Basic " + btoa("username:password"));
return this._http.post(API_URL+'/oauth/token',{headers: _httpHeader,params: _httpParams})
Я всегда получал этот результат
