From 2171af4150ce16f28b2f9dfa8f6b42d9fbe79bd3 Mon Sep 17 00:00:00 2001 From: Neon Vortex Date: Sat, 22 Nov 2025 23:55:40 -0500 Subject: [PATCH] Enable CORS headers for Godot threading support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The game uses threaded WASM (Neon Vortex.side.wasm exists) which requires Cross-Origin-Embedder-Policy and Cross-Origin-Opener-Policy headers for SharedArrayBuffer support. Without these headers, the game only partially loads because the threading fails to initialize. Fixes: Partial page loading issue 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- htlm/nginx.conf | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/htlm/nginx.conf b/htlm/nginx.conf index 49a137f..25307af 100644 --- a/htlm/nginx.conf +++ b/htlm/nginx.conf @@ -24,12 +24,10 @@ server { add_header X-Content-Type-Options "nosniff" always; add_header X-XSS-Protection "1; mode=block" always; - # CORS headers for web workers and WASM - # ONLY NEEDED IF GODOT EXPORT USES THREADS MODE - # These headers can block input if export is "Regular" (non-threaded) - # Commenting out to fix button input issues - # add_header Cross-Origin-Embedder-Policy "require-corp" always; - # add_header Cross-Origin-Opener-Policy "same-origin" always; + # CORS headers for web workers and WASM with threading (side.wasm) + # Required for SharedArrayBuffer and threading support + add_header Cross-Origin-Embedder-Policy "require-corp" always; + add_header Cross-Origin-Opener-Policy "same-origin" always; location / { try_files $uri $uri/ "/Neon Vortex.html";