0
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);

Screen shot of Http Request is: enter image description here

Please help.

1 Answers1

0
const httpOptions = {
    headers: new HttpHeaders({ 'Content-Type': 'application/json' })
  };
James Siva
  • 1,243
  • 1
  • 14
  • 19