
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeI can help you troubleshoot this CORS issue! Based on the error you're experiencing, here are the most common causes and solutions:
First, verify your CORS settings in the Sanity Management Dashboard:
Protocol Matters: The most frequent issue is a protocol mismatch. Make sure you're adding:
http://localhost:3000 (not https://localhost:3000) for local developmenthttps://your-domain.com (not http://) for your deployed siteEnable "Allow Credentials": If you're using authentication tokens with your Sanity client, you must check the "Allow credentials" checkbox for each origin. This is required when the Access-Control-Allow-Credentials header needs to be set to 'true'.
http://localhost:3000, not http://localhost:3000/)If you're accessing Sanity Studio itself (not just querying data), remember that:
yourproject.sanity.studio shouldn't need CORS configurationsanity dev locally, CORS shouldn't typically apply to the Studio interface itself, only to API requests from other originsOne important note: CORS settings configured in the Management Dashboard apply to the Data API but not to the Asset CDN. If you're trying to fetch assets directly from the browser, you may encounter separate CORS restrictions.
The exact error message from your browser console would help narrow down whether it's an origin mismatch, credentials issue, or something else. Look for messages like "No 'Access-Control-Allow-Origin' header is present" (origin not added) or "Access-Control-Allow-Credentials' header must be 'true'" (credentials not enabled).
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