Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Option for coop and coep headers #83

Closed
HKalbasi opened this issue Jan 18, 2022 · 2 comments · Fixed by #84
Closed

Option for coop and coep headers #83

HKalbasi opened this issue Jan 18, 2022 · 2 comments · Fixed by #84

Comments

@HKalbasi
Copy link

Several features of browser is not enabled due specture, unless a page declare itself as cross origin isolated by sending coop and coep headers to the browser. Notably, sharedArrayBuffer feature need those headers, which is required for testing rust programs with thread in web assembly. A --coi flag, similar to --cors that enables these headers would be great.

@weihanglo
Copy link
Owner

Could you elaborate more on the benefit of enabling sharedArrayBuffer for sfz? I have no idea the relations between them.

@HKalbasi
Copy link
Author

It is useful for web developing. In my case, I'm trying to add rust analyzer to play.rust-lang.org . I serve the playground build folder via sfz, and everything is fine, except ra-wasm that isn't working because of sharedArrayBuffer. I think web developing is also the use case for --cors?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants