Multiple origins for Access-Control-Allow-Origin in vercel.json?

Hi @trusktr, welcome to the Vercel Community!

I’d recommend reading our Different ways to handle CORS on Vercel post.

But more specifically, if you need dynamic values for the allowed origins, you can use the Edge Middleware from Vercel, which is basically adding a middleware.ts file to the root of your project. There’s an example for that in the post I shared about.

I hope this was helpful.