We've added Cross-Origin-Embedder-Policy header in #1002 to support drift OPFS and WebAssembly building (those use the SharedArrayBuffers available only on cross origin isolated sites). However, it turned out that not only the resource embedding other resources must have COEP header, but the embedded resources must have one as well:
Solution
This PR adds COEP header to each nginx hosted resource (e.g. drift_worker.dart.js).
Related to #996 Related to #998 Related to #1002
Synopsis
We've added
Cross-Origin-Embedder-Policy
header in #1002 to supportdrift
OPFS and WebAssembly building (those use theSharedArrayBuffer
s available only on cross origin isolated sites). However, it turned out that not only the resource embedding other resources must have COEP header, but the embedded resources must have one as well:Solution
This PR adds COEP header to each nginx hosted resource (e.g.
drift_worker.dart.js
).Checklist
k::
labels applied