human-tools / toolbox-web

Simple Secure and Private Tools for everyday humans
https://humantools.io
22 stars 3 forks source link

[CreatePhotosSlideshow] ffmpeg broken locally because of CORS related headers #25

Closed mkhatib closed 1 year ago

mkhatib commented 1 year ago

The local server needs to serve our pages with 2 headers in order for the browser to allow us to use SharedArrayBuffer which ffmpeg depends on. This works non-locally because we already set these headers in our deployed server.

Cross-Origin-Opener-Policy: same-origin
Cross-Origin-Embedder-Policy: require-corp