Hi,<br>I've following problem: we are running website with SPDY enabled (nginx 1.3.12 with SPDY patch 62 and OpenSSL 1.0.1e) where we are providing API interface too. This API is used by other site (mobile interface) and in order to have this whole thing working I've added following configuration to nginx in order to have cross-origin requests working (found this somewhere in the web):<br>
<br>if ($request_method = 'OPTIONS') {<br> add_header 'Access-Control-Allow-Origin' '*';<br><br> add_header 'Access-Control-Allow-Credentials' 'true';<br> add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, DELETE, OPTIONS';<br>
<br> add_header 'Access-Control-Allow-Headers' 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type'; <br>
add_header 'Access-Control-Max-Age' 1728000;<br> add_header 'Content-Type' 'text/plain charset=UTF-8'; <br> add_header 'Content-Length' 0; <br>
<br> return 200; <br>} <br><br>The problem with that is Chrome browser is reporting that OPTIONS failed when SPDY is enabled - when I turn off SPDY support everything is working as expected.<br>
Any idea how to workaround this (and maybe it's some bug inside Chrome)?<br>Cheers,<br>Paweł<br>