Skip to content

Conversation

@bennettrwu
Copy link
Contributor

A workaround to set:

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

on Github pages in order to use SharedArrayBuffer (needed for in browser whisper). See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer for why these headers are needed.

The coi-serviceworker.js comes from this workaround: https://github.com/gzuidhof/coi-serviceworker

@bennettrwu bennettrwu merged commit d8e20de into master Dec 4, 2024
@bennettrwu bennettrwu deleted the shared-array-buffer-fix branch December 4, 2024 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants