According to Mozilla, there is no browser on iOS supporting the cross-origin-opener-policy, which is one of the security requirements for enabling a SharedArrayBuffer. Does this mean I cannot use a SharedArrayBuffer for any web-application on the iOS platform?
6 Answers
Unfortunately SharedArrayBuffer was disabled due to Spectre / Meltdown issues, so no, you cannot use it:

- 68,894
- 15
- 164
- 232
-
Yes, I noticed that, yet hoped there was some special set of requirements that made it possible, as has been done with other platforms. Hopefully, this issue will be rectified soon. – Jack Aug 09 '20 at 16:10
actually it says on the Caniuse site that you can enable the feature, but I have found no documentation to this end re: Safari

- 654
- 7
- 10
-
1
-
I was hoping to use opencv.js, but this blocked me on Safari on both mac os and iOS and I haven't found any way to enable that feature. – user3325025 May 27 '21 at 17:56
There's a flag you can enable now in Safari:
Resurrected SharedArrayBuffer and Atomics behind a flag (JSC_useSharedArrayBuffer=1) (r269531)

- 1,554
- 2
- 16
- 23
To complete user3325025 and Alexander's answer, you can open Safari with SharedArrayBuffer enabled by typing the following command in the terminal:
__XPC_JSC_useSharedArrayBuffer=1 open -a "Safari"
Here is a list of browsers that support SharedArrayBuffer: https://caniuse.com/sharedarraybuffer

- 1,180
- 1
- 10
- 28
If the user has upgraded to Safari 15.2, SharedArrayBuffer can be enabled with COOP and COEP headers. See this documentation page.

- 63,369
- 21
- 118
- 128

- 11
- 1
-
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/30839702) – tomerpacific Jan 24 '22 at 16:11
Safari Technology Preview recently announced it can enable SharedArrayBuffer when the page is cross-origin isolated. https://webkit.org/blog/11975/release-notes-for-safari-technology-preview-133/
There are certain requirements to enable cross-origin isolation. Learn more here: https://web.dev/coop-coep/

- 2,144
- 15
- 14