فهرست منبع

Ensure editor crossorigin isolation headers

Adam Scott 10 ماه پیش
والد
کامیت
1a082fdd80
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      platform/web/emscripten_helpers.py

+ 1 - 0
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_OPT_CACHE___": json.dumps(opt_cache),
             "___GODOT_OFFLINE_PAGE___": "offline.html",
             "___GODOT_OFFLINE_PAGE___": "offline.html",
             "___GODOT_THREADS_ENABLED___": "true" if env["threads"] else "false",
             "___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)
         html = env.Substfile(target="#bin/godot${PROGSUFFIX}.html", source=html, SUBST_DICT=subst_dict)
         in_files.append(html)
         in_files.append(html)