title: Enabling CORS on nginx
body: <p>I have followed <a href="https://michielkalkman.com/snippets/nginx-cors-open-configuration/" rel="nofollow noreferrer">this</a> example to enable CORS on my API subdomain so that I can send requests to it from SwaggerUI. This is the output I get from running OPTIONS on that subdomain:</p>
  
  <pre><code>curl -i -X OPTIONS http://api.MYDOMAIN.com/v1/data/extraction
  
  HTTP/1.1 204 No Content
  Server: nginx/1.10.3 (Ubuntu)
  Date: Wed, 18 Apr 2018 20:45:52 GMT
  Connection: keep-alive
  Access-Control-Allow-Origin: *
  Access-Control-Allow-Credentials: true
  Access-Control-Allow-Methods: GET, POST, OPTIONS
  Access-Control-Allow-Headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,X-API-Key
  Access-Control-Max-Age: 1728000
  Content-Type: text/plain charset=UTF-8
  Content-Length: 0
  </code></pre>
  
  <p>I'm stuck on where to go to figure out why in Chrome on my docs subdomain (same DOMAIN.com server) it <a href="https://i.stack.imgur.com/O5Owl.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O5Owl.jpg" alt="CORS error"></a> still gives me this. Can anyone advise where I should look to?</p>