title: CORS error when trying to call get API in Angular
body: <p>I am trying to get HTML data from any website using get API.</p>
  <p>I have this URL: <code>https://www.linkedin.com/</code></p>
  <p>I am trying to get HTML page as text from this URL.</p>
  <p>What I tried:</p>
  <pre><code>  getData() {
      const api = &quot;https://www.linkedin.com/&quot;;
      return this.httpClient.get(api, { responseType: &quot;text&quot; });
    }
  
   ngOnInit(): void {
      this.getData().subscribe((value) =&gt; {
        console.log(value);
      });
    }
  </code></pre>
  <p>I got this error:</p>
  <blockquote>
  <p>Access to XMLHttpRequest at 'https://www.linkedin.com/' from origin 'http://localhost:4200' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.</p>
  </blockquote>
  <p>What did I miss?</p>