Add COOP/COEP headers for OPFS persistence on Vercel#6
Conversation
OPFS requires Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy headers for SharedArrayBuffer support. Added vercel.json at root for the demo deployment and in examples/browser for standalone deployments. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. WalkthroughAdds two vercel.json configuration files to define HTTP security headers for CORS policy enforcement. Both files set Cross-Origin-Embedder-Policy and Cross-Origin-Opener-Policy headers to manage cross-origin requests during Vercel deployments. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes
Poem
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
vercel.jsonis for the demo site deploymentexamples/browser/vercel.jsonis for users deploying examples standaloneTest plan
Cross-Origin-Embedder-Policy: require-corpandCross-Origin-Opener-Policy: same-origin🤖 Generated with Claude Code
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.