cross-origin-embedder-policy: credentialless and cross-origin-opener-policy: same-origin Blocking page on chrome #81384
Replies: 3 comments 5 replies
-
✅ Fix for
|
Beta Was this translation helpful? Give feedback.
-
Try this and deploy or run, This helps you to override headers that Vercel adds at the CDN level—including those on /_next/static/..., /_next/chunks/..., etc.—add this to a vercel.json at your project root { |
Beta Was this translation helpful? Give feedback.
-
Add a {
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "Cross-Origin-Embedder-Policy",
"value": "unsafe-none"
},
{
"key": "Cross-Origin-Opener-Policy",
"value": "same-origin-allow-popups"
}
]
}
]
} Deploy (or redeploy) the project: vercel --prod This configuration applies your custom headers at the CDN level, so the new values will appear on all resources—including static assets under |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Despite setting global and targeted header overrides in next.config.js, my static assets (e.g., /_next/static/chunks/app/page-xxxx.js) are still being served with cross-origin-embedder-policy: credentialless and cross-origin-opener-policy: same-origin. This is breaking Stripe Elements in Chrome. Please advise how to remove or override these headers for all static assets, as this is not possible from my project configuration.
Does anyone know how I could fix this please.
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions