lukeed / sirv

An optimized middleware & CLI application for serving static files~!
MIT License
1.07k stars 58 forks source link

Allow CORP Headers, Enabling SharedArrayBuffer #146

Open a904guy opened 2 years ago

a904guy commented 2 years ago

I've updated the sirv-cli to allow for setting both Cross-Origin-Embedder-Policy, and Cross-Origin-Opener-Policy so that you can use SharedArrayBuffer in modern browser versions.

Explaining the need: Blog Regarding SharedArrayBuffer

Necessity/Purpose: So that you can work locally with @ffmpeg/ffmpeg which relies on SharedArrayBuffer