
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeThis is a classic CORS (Cross-Origin Resource Sharing) issue that happens when you initialize a new Sanity Studio project. The good news is it's easy to fix!
When you run sanity start, your Studio typically runs on http://localhost:3333 by default. For security reasons, Sanity projects only respond to queries from explicitly allowed origins. A fresh project defaults to allowing localhost:3333, but sometimes the configuration needs to be added manually.
sanity cors add http://localhost:3333If the CLI command doesn't work:
http://localhost:3333If you started your Studio on a different port (like localhost:3000), make sure to add that specific URL instead. You can check which port your Studio is running on by looking at the terminal output after running sanity start.
A few other things to check:
The CORS configuration is covered in detail in the Sanity CORS documentation, which explains why this security measure exists and how to manage origins for different environments (development, staging, production).
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