vercel / analytics

Privacy-friendly, real-time traffic insights
https://vercel.com/analytics
Mozilla Public License 2.0
416 stars 24 forks source link

CORS errors #143

Open officert opened 1 month ago

officert commented 1 month ago

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?