From 48e010417986d43d9981c2d9e89fc255b77cd941 Mon Sep 17 00:00:00 2001 From: Natalie Rose Date: Tue, 25 Aug 2026 14:44:30 +1000 Subject: [PATCH] Restore access control header --- etc-docker/nginx.conf | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/etc-docker/nginx.conf b/etc-docker/nginx.conf index f1194471..09688fd8 100644 --- a/etc-docker/nginx.conf +++ b/etc-docker/nginx.conf @@ -27,12 +27,13 @@ http { listen 80; server_name 0.0.0.0; + location * { + add_header Access-Control-Allow-Origin *; + } + location / { add_header Cache-Control must-revalidate; add_header Cache-Control public; - # Mirrors the CORS middleware in app/stubs/server.ts so the - # frontend can fetch static files (changes.txt, server_overview.json, ...) - # from a localhost dev server without hitting CORS restrictions. add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Headers 'content-type,x-requested-with'; root /home/lacuna/server/var/www/public; @@ -106,4 +107,3 @@ http { } } } - -- 2.51.2