title: Getting an error while calling linkedin API
body: <p>Getting an error while calling linkedin API. Like,</p>
  <blockquote>
  <p>Access to XMLHttpRequest at 'https://api.linkedin.com/v2/me' from origin 'https://localhost:8085' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.</p>
  </blockquote>
  <p>I have also added headers like,</p>
  <pre><code>&quot;Access-Control-Allow-Origin&quot;: &quot;*&quot;,
  &quot;Access-Control-Allow-Credentials&quot;: &quot;true&quot;,
  &quot;Access-Control-Max-Age&quot;: &quot;1800&quot;,
  &quot;Access-Control-Allow-Headers&quot;: &quot;content-type&quot;,
  &quot;Access-Control-Allow-Methods&quot;:&quot;PUT, POST, GET, DELETE, PATCH, OPTIONS&quot;,
  &quot;Content-Type&quot;: &quot;application/json;charset=utf-8&quot;,
  </code></pre>