From 6125ba493194b47f5bc0573b358d358862fbda35 Mon Sep 17 00:00:00 2001 From: LukeGus Date: Fri, 31 Oct 2025 16:17:12 -0500 Subject: [PATCH] fix: Nginx runtime error --- docker/nginx.conf | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/docker/nginx.conf b/docker/nginx.conf index b3fa9f1b..bae07954 100644 --- a/docker/nginx.conf +++ b/docker/nginx.conf @@ -34,20 +34,12 @@ http { add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization" always; add_header Access-Control-Allow-Credentials "true" always; - # Handle preflight requests - if ($request_method = 'OPTIONS') { - add_header Access-Control-Allow-Origin $http_origin always; - add_header Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS, PATCH" always; - add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept, Authorization" always; - add_header Access-Control-Allow-Credentials "true" always; - return 204; - } - # Serve static assets directly location ~* \.(js|css|png|jpg|jpeg|gif|ico|svg|woff|woff2|ttf|eot)$ { root /usr/share/nginx/html; expires 1y; add_header Cache-Control "public, immutable"; + add_header Access-Control-Allow-Origin $http_origin always; try_files $uri =404; }