workers-sanity-cors
A github app to automatically manage sanity cors for preview links from cloudflare workers.
Note: this project isn't really hat useful anymore since Sanity added support for pre-fixable domains (is that the right term, lol) such as *.na10.dev . It was still a cool project to build tho.
This is a lightweight Cloudflare Worker that automates CORS management for Sanity CMS during development workflows. Built with TypeScript and Hono, it listens to GitHub webhook events to automatically add preview deployment URLs to Sanity's CORS allowlist when deployments succeed, and removes them when pull requests are closed. The solution eliminates manual CORS configuration overhead.
repo: link
Web Dev