title: Access to XMLHttpRequest at 'https://xxxxxxxxx' from origin 'http://localhost' has been blocked angular 11
body: <p>Access to XMLHttpRequest at 'https://xxxxxxxxx' from origin 'http://localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
  my code:
  const headers = new HttpHeaders().set(
  'Content-Type',
  'application/x-www-form-urlencoded;'
  ).set('Access-Control-Allow-Origin', '*');</p>
  <p>return this.http.post(this.rootURL +'/connect/token',
  body
  ,{ 'headers': this.headers })</p>
  <p>use it in production</p>