When enabling SharedArrayBuffer, a CORP error occurs

When enabling “Enable SharedArrayBuffer” in setting → LAUNCH PAGE,
an error occurs:
“specify a cross-origin resource policy to prevent a resource from being blocked.”

It’s a situation where enabling SharedArrayBuffer is necessary, but encountering this problem when fetching the payment library.

paging @yak32

enabling SharedArrayBuffer adds additional security headers for the launch page (it’s a requirement for SharedArrayBuffer):

please check this: SharedArrayBuffer - JavaScript | MDN

you need to set cross origin headers for your payment library to allow launch.playcanvas.com

1 Like