analytics icon indicating copy to clipboard operation
analytics copied to clipboard

CORS errors

Open officert opened this issue 1 year ago • 1 comments

I'm running into an issue with CORS when using Vercel Speed Insights and Analytics in a NextJS app:

Screenshot 2024-06-06 at 2 24 32 PM

The POST requests seem to work fine, it's only the POST + Preflight request that failing.

I've tried enabling CORS in a NextJS app as described here:

https://vercel.com/guides/how-to-enable-cors#enabling-cors-using-vercel.json

But it doesn't seem to affect the _vercel endpoint.

Do the _vercel endpoints block CORS?

officert avatar Jun 06 '24 18:06 officert