Answers from the community about CORS

Some of the conversations between community members on questions, suggestions and tips for using Sanity. Join our Discord to be a part of it.

TopicCategoriesFeaturedRepliesLast Updated
CORS error persists despite adding origins and allowing credentials20May 18, 2022
getServerSideProps not working in React Router (Next.js vs React)20May 16, 2022
CORS origins pattern for Cloudflare Pages preview URLs with dynamic hash8May 3, 2022
How to Delete a Project from an Account28Apr 22, 2022
Cannot add wildcard domain to Sanity CORS settings3Mar 10, 2022
Troubleshooting deployment and login issues with self-hosted Sanity instance10Feb 23, 2022
CORS Policy Error When Downloading PDF Files with JavaScript Fetch4Dec 27, 2021
Preview Mode works locally but fails with Error 500 in production7Dec 16, 2021
Button to link to most recent blog post (index 0)24Nov 23, 2021
CORS error loading SVG from Sanity CDN inline with external-svg-loader13Nov 23, 2021
CORS not working after adding custom domain to Netlify site9Sep 28, 2021
Next.js - How to Get Data From Sanity Using SWR17Sep 9, 2021
Issue with CORS error when fetching data from Sanity Studio in React App12Sep 1, 2021
CORS Error: Sanity CDN Returns localhost Instead of Production Domain5Aug 11, 2021
Loss of `Access-Control-Allow-Origin` Headers after New CORS Origin17Aug 11, 2021
Category page 404 error when copying post slug logic in Sanity + Next.js4Jul 18, 2021
CORS wildcard subdomain not working with Netlify domain5Jul 14, 2021
Hosting Sanity Studio and Frontend together on Netlify with /admin route14May 14, 2021