2020-07-27 15:04:21 +00:00
|
|
|
if ($request_method = 'OPTIONS') {
|
2021-03-19 14:18:52 +00:00
|
|
|
more_set_headers 'Access-Control-Allow-Origin: $http_origin';
|
|
|
|
more_set_headers 'Access-Control-Allow-Credentials: true';
|
2021-04-30 11:03:48 +00:00
|
|
|
more_set_headers 'Access-Control-Allow-Methods: GET, POST, HEAD, OPTIONS, PUT, PATCH, DELETE';
|
2021-08-31 14:55:18 +00:00
|
|
|
more_set_headers 'Access-Control-Allow-Headers: DNT,User-Agent,X-Requested-With,If-Modified-Since,If-None-Match,Cache-Control,Content-Type,Range,X-HTTP-Method-Override,upload-offset,upload-metadata,upload-length,tus-version,tus-resumable,tus-extension,tus-max-size,location';
|
2020-08-18 12:42:17 +00:00
|
|
|
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
|
|
|
}
|
2020-08-18 12:42:17 +00:00
|
|
|
|
2021-03-19 14:18:52 +00:00
|
|
|
more_set_headers 'Access-Control-Allow-Origin: $http_origin';
|
|
|
|
more_set_headers 'Access-Control-Allow-Credentials: true';
|
2021-04-30 11:03:48 +00:00
|
|
|
more_set_headers 'Access-Control-Allow-Methods: GET, POST, HEAD, OPTIONS, PUT, PATCH, DELETE';
|
2021-08-31 14:55:18 +00:00
|
|
|
more_set_headers 'Access-Control-Allow-Headers: DNT,User-Agent,X-Requested-With,If-Modified-Since,If-None-Match,Cache-Control,Content-Type,Range,X-HTTP-Method-Override,upload-offset,upload-metadata,upload-length,tus-version,tus-resumable,tus-extension,tus-max-size,location';
|
2021-08-31 14:01:55 +00:00
|
|
|
more_set_headers 'Access-Control-Expose-Headers: Content-Length,Content-Range,ETag,Skynet-File-Metadata,Skynet-Skylink,Skynet-Proof,Skynet-Portal-Api,Skynet-Server-Api,upload-offset,upload-metadata,upload-length,tus-version,tus-resumable,tus-extension,tus-max-size,location';
|