title: Why does CORS not make a request?
body: <p>I have a problem with a CORS request</p>
  
  <pre><code>Access to fetch at 'https://webhook.site/f9087e12-b444-4e6b-9e64-06ba47b8c24e' from origin 'https://localhost:5001' 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. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
  </code></pre>
  
  <p>My request:</p>
  
  <pre><code>        fetch("https://webhook.site/f9087e12-b444-4e6b-9e64-06ba47b8c24e", {
          method: 'get',
          headers: new Headers({
              'Access-Control-Allow-Origin': 'https://localhost:5001',
              'Content-Type': 'application/json;charset=utf-8'
          }),
      })
          .then(res =&gt; res.json())
          .then(
              (result) =&gt; {
                  console.log('res ' + result);
              },
              (error) =&gt; {
                  console.log('error ' + error);
              }
          )
  </code></pre>
  
  <p>I can’t figure out how to solve the problem.</p>