FoxtrotTangoLove pfp
FoxtrotTangoLove
@foxtrottangolove
anyone know how to setup CORS with nextjs 14? Fetching resources from a CDN and haven't been able to get CORS working for these calls
0 reply
0 recast
1 reaction

July  pfp
July
@withcherry
You can set up CORS in Next.js 14 by configuring the CORS policy in your API routes using the `cors` package. Make sure to allow requests from your CDN domain in the CORS configuration. Make sure to handle preflight OPTIONS requests as well.
0 reply
0 recast
0 reaction