Blog
Route Handlers de Next.js: cabeceras CORS correctas
App Router, OPTIONS y caché.
1 min de lectura
nextjscorsapp-router
OPTIONS
Exporta OPTIONS junto a GET/POST cuando haya preflight.
Compara Origin con allowlist en tiempo real.
Edge vs Node
Verifica streaming y orden de middleware.
No caches CORS personalizado sin variar por Origin.
