v1.0.125: Sonnet fix — CORS inside nginx if, raw binary ZIP, multipart fallback

This commit is contained in:
2026-06-23 08:36:42 +04:00
parent 402c346021
commit 4f66853447
3 changed files with 26 additions and 17 deletions
+7 -3
View File
@@ -44,10 +44,14 @@ server {
}
location /unzip-upload {
if ($request_method = OPTIONS) {
add_header Access-Control-Allow-Origin "*";
add_header Access-Control-Allow-Methods "POST, OPTIONS";
add_header Access-Control-Allow-Headers "*";
add_header Content-Length 0;
return 204;
}
add_header Access-Control-Allow-Origin "*";
add_header Access-Control-Allow-Methods "POST, OPTIONS";
add_header Access-Control-Allow-Headers "*";
if ($request_method = OPTIONS) { return 200; }
proxy_pass http://127.0.0.1:8766;
client_max_body_size 100m;
}