Get a peek at our latest innovations at Sanity Product Day on Dec 8th →

Adding a CORS Origin With a Wildcard to a New Project

4 replies
Last updated: Jul 14, 2021

hi, i’m having trouble adding a CORS origin with a wildcard to a new project. When i enter

I get an error: “Unable to parse URL”. I’ve been able to successfully do this in the past (to target Netlify branch deploys)

Jul 14, 2021, 6:05 PM

Hi Patrick. This might be one you’ll need to add from the command line. Could you please try

sanity cors add &lt;URL&gt;
from your terminal?

Jul 14, 2021, 6:11 PM


user A
that worked

Jul 14, 2021, 6:15 PM

fair enough to warn users on that level! 😄

Jul 14, 2021, 6:15 PM

Thanks Patrick. I’ll pass along the feedback. 👍

Jul 14, 2021, 6:16 PM Get the most out of your content is a platform to build websites and applications. It comes with great APIs that let you treat content like data. Free to get started, and pay-as-you-go on all plans. Find out more.