From 1a082fdd8038d6a4f0f7d9c335a2c7ea440566d1 Mon Sep 17 00:00:00 2001 From: Adam Scott Date: Wed, 6 Nov 2024 13:20:51 -0500 Subject: [PATCH] Ensure editor crossorigin isolation headers --- platform/web/emscripten_helpers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/web/emscripten_helpers.py b/platform/web/emscripten_helpers.py index 3122271a714..294ef06487a 100644 --- a/platform/web/emscripten_helpers.py +++ b/platform/web/emscripten_helpers.py @@ -76,6 +76,7 @@ def create_template_zip(env, js, wasm, worker, side): "___GODOT_OPT_CACHE___": json.dumps(opt_cache), "___GODOT_OFFLINE_PAGE___": "offline.html", "___GODOT_THREADS_ENABLED___": "true" if env["threads"] else "false", + "___GODOT_ENSURE_CROSSORIGIN_ISOLATION_HEADERS___": "true", } html = env.Substfile(target="#bin/godot${PROGSUFFIX}.html", source=html, SUBST_DICT=subst_dict) in_files.append(html)