How to disable SharedArrayBuffer in godot 4

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By cdotta

I’ve been running my HTML5 game in production for a while. I migrated to Godot 4, and everything seems to work as expected. The problem is that it breaks when I add it to my website because of the cross-origin isolation requirement. I’d like to disable the usage of SharedArrayBuffer, but I am not sure how. I can’t find an option to do such thing.

:bust_in_silhouette: Reply From: Calinou

Godot 4.0 requires support for SharedArrayBuffer, so it can’t be disabled (unlike in Godot 3.x).

Support for running the HTML5 export without SharedArrayBuffer may be readded in a future 4.x release, but we recommend configuring the web host to send the correct headers (as jgodfrey mentioned in the comment to your question). This will lead to better performance and lower audio latency.