Question
vercel.json is a static file. I need to allow a static website to allow multiple origins, for example example.com and subdomain.example.com.
With a dynamic server, we can dynamically generate a single origin value for Access-Control-Allow-Origin.
But how do we do this for a static website with vercel.json?
I read the docs here:
https://vercel.com/guides/how-to-enable-cors
and here:
https://vercel.com/docs/project-configuration#headers
but neither of them specify how to allow a list of origins. I would assume that Vercel would run logic that sends the correct Access-Control-Allow-Origin header based on which origin is visiting a page.