
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeI can see you're getting the "Unable to parse URL" error when trying to add a wildcard CORS origin for your Netlify branch deploys. Good news - Sanity does support wildcard CORS origins, but the format needs to be exact.
Based on the official Sanity CORS documentation, wildcards (*) are allowed in CORS origins. For Netlify branch deploys, the correct format should be:
https://*.my-project-name.netlify.app
Note the placement: https://* followed directly by .your-domain (no space, no extra characters).
If you're entering the wildcard correctly and still getting this error, here are some things to check:
https:// (not http://)https://*.my-project-name.netlify.apphttps://main--my-project-name.netlify.app to verify your project settings are workingYou can configure CORS origins in two ways:
Via Management Dashboard:
https://*.my-project-name.netlify.appVia Sanity CLI:
sanity cors add https://*.my-project-name.netlify.app --credentialsIf the dashboard is giving you trouble, try the CLI method as an alternative.
Netlify branch deploys use the pattern https://branch-name--site-name.netlify.app, so the wildcard https://*.my-project-name.netlify.app should cover all your branch deploys perfectly.
Don't forget to also add http://localhost:3000 (or your local dev port) for local development work.
If you're still encountering the parsing error after verifying the format, there may be a temporary issue with the Management Dashboard. In that case, definitely try the CLI method or reach out to Sanity support through the Community Slack for direct assistance.
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store