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);Http请求的屏幕截图如下:

请帮帮忙。
发布于 2018-08-23 20:56:37
const httpOptions = {
headers: new HttpHeaders({ 'Content-Type': 'application/json' })
};https://stackoverflow.com/questions/51986301
复制相似问题