Skip to content

CORS headers needed to use twrWasmModuleAsync

Important Production Note

twr-wasm class twrWasmModuleAsync uses SharedArrayBuffers, and there are special CORS headers that need to be configured to use SharedArrayBuffers, that are not widely enabled by default on web servers. The server.py or staticwebapp.config.json examples show which headers to set (also see the SharedArrayBuffer documentation online).