hwkiem / imho

davdiv.vercel.app
3 stars 1 forks source link

Dynamic CORS origin #120

Closed hwkiem closed 2 years ago

hwkiem commented 2 years ago

Currently vercel will deploy PR branches for production checks prior to merging. This is super useful, but the production backend rejects these clients for not matching CORS origin. Need to rework CORS origin as an array including a regex string to catch all branch deployment urls.