title: Access to XMLHttpRequest at 'https://api-v3.igdb.com/games...' ... No 'Access-Control-Allow-Origin' header is present on the requested resource
body: <pre><code>Access to XMLHttpRequest at 'https://api-v3.igdb.com/games/?search=nfs&amp;fields=name,genres.name,first_release_date,cover.*&amp;limit=10&amp;offset=0' from origin 'http://localhost:3000' 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.
  </code></pre>
  
  <p>i am not understarding how to solve this error.</p>
  
  <p>i need help for cross origin in localhost:3000   </p>
  
  <p>show code like this: </p>
  
  <pre><code>var headers = {'user-key': '**********************',
              'Accept': 'application/json',
          "Access-Control-Allow-Methods": "GET, POST, PATCH, PUT, DELETE, OPTIONS",
      'Access-Control-Allow-Origin': '*',
      'Access-Control-Allow-Headers': 'X-Requested-With, content-type, Authorization',
      'Access-Control-Allow-Credentials': true
  }
  
      var dataurl = 'https://api-v3.igdb.com/games/?search=nfs&amp;fields=name,genres.name,first_release_date,cover.*&amp;limit=10&amp;offset=0'
  
  axios.post( dataurl, '' , { crossDomain: true,headers:headers })
  .then(resData =&gt; {
      console.log(resData)
          })
          .catch(err =&gt;{
              console.error(err)          
          })
  </code></pre>