Replies: 1 comment 1 reply
-
I just did some testing by adding an From Cross-Origin-Embedder-Policy on MDN
The servers that provide cross-origin resources to your restricted page need to add the below header. (Not the server serving your page with the 2 headers stated in your post.)
|
Beta Was this translation helpful? Give feedback.
-
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer
According to the security requirements of SharedArrayBuffer, I added the following content to the server configuration. (The server is Apache)
It is equivalent to adding this http header to all requests.
At first, all resources were on the same site. This runs fine with no issues.
Later, I split the referenced open source code, data API, pictures, and video resources to another site.
I found that this will affect cross-domain resources. Delete these two http headers to use cross-domain resources. But this doesn't meet the security requirements of SharedArrayBuffer, so I can't use ffmpeg.wasm.
How to solve this problem?
Beta Was this translation helpful? Give feedback.
All reactions