The code for cors-test.codehappy.dev. A tiny tool for checking if your CORS headers are setup correctly.
This website is deployed as a Cloudflare worker. The entire script is inside index.js
. It makes a request to the URL, checks the headers and then lets you know if they are setup correctly for CORS.
For development you need to install wrangler.
Then run wrangler dev
to start the server.
It's auto deployed via GitHub Actions.