+
+ if ($request_method = 'OPTIONS') {
+ add_header 'Content-Type' 'text/plain; charset=UTF-8';
+ add_header 'Content-Length' 0;
+ add_header Access-Control-Allow-Origin "*" always;
+ add_header Access-Control-Allow-Methods 'GET,OPTIONS' always;
+ return 204;
+ }
+