-
-
Notifications
You must be signed in to change notification settings - Fork 654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[v3] The server must emit the COOP/COEP response headers to enable those (Warning) #2997
Comments
I encountered the same issue when deploying on Cloudflare Pages and resolved it by specifying the missing headers.
These headers are required for enabling cross-origin isolation, which allows features like OPFS. A redeploy will resolve the warning. If you are using a different hosting provider, the fix will be the same, but the method for specifying headers may differ. |
A workaround is to use export default defineNuxtConfig({
modules: ['nuxt-security'],
security: {
headers: {
crossOriginEmbedderPolicy: 'require-corp',
crossOriginOpenerPolicy: 'same-origin', // or 'credentialless'
},
},
}) Note that by default |
For vercel use https://vercel.com/guides/how-to-enable-cors but replace the headers Though I still got |
You can ignore this warning for the moment. It will be fixed in the next release. Note that OPFS is required by SQLite-WASM to persist databases in browser storage. Nuxt Content does not use this feature; therefore, we can safely ignore it. |
Hi,
When I navigate with
NuxtLink
I get following warning when I navigate the first time:Ignoring inability to install OPFS sqlite3_vfs: Cannot install OPFS: Missing SharedArrayBuffer and/or Atomics. The server must emit the COOP/COEP response headers to enable those. See https://sqlite.org/wasm/doc/trunk/persistence.md#coop-coep
How can I add
COOP/COEP
response headers to thequeryCollection
composable?dependencies used:
The text was updated successfully, but these errors were encountered: