v1.0.144: fix duplicate CORS /upload
This commit is contained in:
@@ -44,10 +44,13 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /upload {
|
location /upload {
|
||||||
add_header Access-Control-Allow-Origin "*";
|
if ($request_method = OPTIONS) {
|
||||||
add_header Access-Control-Allow-Methods "POST, OPTIONS";
|
add_header Access-Control-Allow-Origin "*";
|
||||||
add_header Access-Control-Allow-Headers "*";
|
add_header Access-Control-Allow-Methods "POST, OPTIONS";
|
||||||
if ($request_method = OPTIONS) { return 204; }
|
add_header Access-Control-Allow-Headers "*";
|
||||||
|
add_header Content-Length 0;
|
||||||
|
return 204;
|
||||||
|
}
|
||||||
proxy_pass http://127.0.0.1:8766;
|
proxy_pass http://127.0.0.1:8766;
|
||||||
proxy_read_timeout 300s;
|
proxy_read_timeout 300s;
|
||||||
client_max_body_size 100m;
|
client_max_body_size 100m;
|
||||||
|
|||||||
Reference in New Issue
Block a user