mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 01:38:44 +00:00
doc/notes
This commit is contained in:
1 parent
82cccb041f
commit
e0fa5be40e
1 file changed
+3
@@ -2,6 +2,9 @@ use actix_web::middleware::DefaultHeaders;
|
||||
|
||||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer#security_requirements
|
||||
// This is a fix for https://github.com/ffmpegwasm/react-app/issues/3
|
||||
// Reading:
|
||||
// - https://stackoverflow.com/questions/73275184/enable-shared-array-buffer-in-cross-domain
|
||||
// - https://blog.logrocket.com/understanding-sharedarraybuffer-and-cross-origin-isolation/
|
||||
pub fn shared_array_buffer_cors() -> DefaultHeaders {
|
||||
DefaultHeaders::new()
|
||||
.add(("Cross-Origin-Embedder-Policy", "require-corp"))
|
||||
|
||||
Reference in new issue
Block a user