overcome CORS

This commit is contained in:
Михаил Капелько
2025-08-17 23:38:37 +03:00
parent 4c4a46ce28
commit 81f39d238f
2 changed files with 16 additions and 2 deletions

View File

@@ -34,7 +34,7 @@ server {
if ($request_method = "OPTIONS") {
add_header "Access-Control-Allow-Origin" "*";
add_header "Access-Control-Allow-Headers" "Content-Type";
add_header "Content-Type" "text/plain charset=UTF-8";
add_header "Content-Type" "text/plain;charset=UTF-8";
add_header "Content-Length" 0;
return 204;
}