This repository has been archived on 2022-10-07. You can view files and clone it, but cannot push or open issues or pull requests.
skynet-webportal/docker/nginx/conf.d/include/cors

10 lines
316 B
Plaintext
Raw Normal View History

2020-07-27 15:04:21 +00:00
if ($request_method = 'OPTIONS') {
include /etc/nginx/conf.d/include/cors-headers;
more_set_headers 'Access-Control-Max-Age: 1728000';
more_set_headers 'Content-Type: text/plain; charset=utf-8';
more_set_headers 'Content-Length: 0';
2020-07-27 15:04:21 +00:00
return 204;
2020-07-27 15:18:09 +00:00
}
include /etc/nginx/conf.d/include/cors-headers;