I am using Web Previews Plugin and I have followed the steps in the documentation. It was working last week and I am sure there wasnt any code change on my end. The plugin gave me a CORS error now
Is there a chance you’re using Vercel’s auth protection for non-prod branches?
If you’re working with multiple environments, and you have this enabled, you’ll find that your prod branch is publicly accessible but all other branches require a Vercel account to be logged in to access the site. Hence the plugin can’t access it.
Thanks for the suggestion and its something that I may look out for in the future. But no, disabling it does not do anything. Currently, im working of main and vercel is pointed to main as well
No, sorry, that CORS setting has to be on your frontend (i.e. the route that actually receives the webhook from us).
If you need help specifically with that and your codebase, could you please share your repo (or at least that one file that handles the webhook) with us at support@datocms.com?