diff --git a/files/cross-domain.conf b/files/cross-domain.conf new file mode 100644 index 0000000..b0b024c --- /dev/null +++ b/files/cross-domain.conf @@ -0,0 +1,8 @@ +add_header Access-Control-Allow-Origin $http_origin always; +add_header Access-Control-Allow-Methods 'POST,GET,PUT,PATCH,OPTIONS,DELETE'; +add_header Access-Control-Max-Age '3600'; +add_header Access-Control-Allow-Headers $http_access_control_request_headers; +add_header Access-Control-Allow-Credentials 'true'; +if ($request_method = 'OPTIONS') { + return 200; +} \ No newline at end of file