const httpOptions = {
headers: new HttpHeaders({
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': 'Basic d2ViYXBwOjExMTE=',
'Access-Control-Expose-Headers' : 'Authorization',
'Accept' : 'application/json'
})
};
return this.http.post(oauth2_token_endpoint, {}, httpOptions);
请帮助。
答案 0 :(得分:0)
const httpOptions = {
headers: new HttpHeaders({ 'Content-Type': 'application/json' })
};