title: AWS CORS no "Access-Control-Allow-Origin" error
body: <p>Im trying to send get request with JSON to AWS API gateway. This works fine from Postman, but when i try to send the same request using jquery i get error <code>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>
  Ive enabled CORS from AWS and set the Access-Control-Allow-Origin to a wildcard.
  I followed this guide <a href="https://medium.com/@peorth/using-jquery-to-access-a-aws-api-gateway-cors-afa11fd27f2a" rel="nofollow noreferrer">https://medium.com/@peorth/using-jquery-to-access-a-aws-api-gateway-cors-afa11fd27f2a</a> and added <code>crossDomain: true</code> yet it changed nothing.
  This is my jquery request:</p>
  <pre><code>var settings = {
          &quot;url&quot;: &quot;https://XXXX.execute-api.eu-west-2.amazonaws.com/default/function&quot;,
          &quot;crossDomain&quot;: &quot;true&quot;,
          &quot;method&quot;: &quot;GET&quot;,
          &quot;timeout&quot;: 0,
          &quot;headers&quot;: {
              &quot;Content-Type&quot;: &quot;application/json&quot;,
              &quot;X-Amz-Content-Sha256&quot;: &quot;XXXXXXX&quot;,
              &quot;X-Amz-Date&quot;: &quot;20210201T172448Z&quot;,
              &quot;Authorization&quot;: &quot;XXXX, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=XXXXXXX&quot;
          },
          &quot;data&quot;: JSON.stringify({&quot;key&quot;:&quot;1&quot;,&quot;id&quot;:&quot;TST&quot;,&quot;action&quot;:&quot;singleLed&quot;,&quot;value&quot;:r+&quot;&quot;+g+&quot;&quot;+b}),
          };
  
          $.ajax(settings).done(function (response) {
              console.log(response);
          });
  </code></pre>
  <p>Im all out of ideas. How could i get the API working or is there another way to post data to AWS without involving CORS?</p>