CORS wide open in Vercel
highUpdated Oct 12, 2026
You can set headers in vercel.json or next.config.ts . A static header on /api/:path is the bug if those routes use cookies.
Fix for Vercel
You can set headers in vercel.json or next.config.ts. A static * header on /api/:path* is the bug if those routes use cookies. Prefer the allowlist in code so Vary: Origin is correct.
The five-minute check, the other platforms, and the agent prompt are on the full guide. More Vercel fixes are on the Vercel page.