I’m attempting to setup Preview Deployments for my Vercel app. I’ve got it mostly working, but my file uploads are getting blocked by my Google Cloud Bucket CORS configuration.
I’ve currently got it set up to accept requests from my production and staging environments. What’s the accepted way of also allowing the origins created by my Preview Deployments? I was hoping I could use some regex/wildcard to allow all URLs from my project.
I’m currently using the REST API to set this up. CORS configuration examples | Cloud Storage | Google Cloud.
I’m wondering if I could use a GitHub Action to take the generated url and temporarily add it to the allowed list, although I’m hoping there’s a simpler way.
Thanks!