
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeGreat that you resolved it! For anyone else encountering similar CORS-related issues with Sanity Studio, here are the key troubleshooting steps:
When you see errors like "Unknown network error" or "Access-Control-Allow-Header" issues when connecting to your Sanity Studio on localhost, here's what to check:
Make sure your localhost is properly configured in your CORS settings:
http://localhost:3000 (or whatever port you're using)http:// vs https:// must match exactlyAs you discovered, browser extensions can cause CORS issues even when your configuration is correct. Common culprits include:
Try testing in an incognito/private window to rule out extension interference.
Sometimes stale CORS headers get cached. Try:
Make sure the project ID in your sanity.config.ts matches the project you've configured CORS for in the Management Dashboard.
If you changed your dev server port, remember to add the new localhost URL to your CORS origins. Each port is treated as a different origin.
The fact that a browser extension was causing this is a good reminder that CORS errors aren't always about your Sanity configuration - sometimes the browser environment itself is the issue! Thanks for sharing the solution - it'll definitely help others who run into the same problem.
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