Unlock seamless workflows and faster delivery with our latest releases - Join the deep dive

CORS error and upgrading to v3.30 resolved with some TypeScript updates.

5 replies
Last updated: Mar 15, 2024
I keep getting this upsell CORS error..
Mar 15, 2024, 3:14 PM
not 100% sure if related but in sanity’s dashboard under project > api, there’s a CORS origins section.
we had to add
<http://localhost:3000>
as a CORS origin at one point
Mar 15, 2024, 3:37 PM
Thats not even my project, its sanity internals
Mar 15, 2024, 3:38 PM
Try upgrading to v3.30?
Mar 15, 2024, 3:49 PM
Wow, that threw me into a rabbit hole of typescript errors, is @sanity/types even needed anymore?
Mar 15, 2024, 4:28 PM
user Y
that did the trick, although I had to update typescript as well.. Thanks
Mar 15, 2024, 4:31 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?