https://github.com/mscoutermarsh/cors-test
A tiny tool for checking if your CORS headers are setup correctly
https://github.com/mscoutermarsh/cors-test
cors javascript tool web
Last synced: 12 months ago
JSON representation
A tiny tool for checking if your CORS headers are setup correctly
- Host: GitHub
- URL: https://github.com/mscoutermarsh/cors-test
- Owner: mscoutermarsh
- License: mit
- Created: 2020-12-27T23:31:17.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-12-02T18:33:21.000Z (over 2 years ago)
- Last Synced: 2025-03-20T16:15:37.721Z (12 months ago)
- Topics: cors, javascript, tool, web
- Language: JavaScript
- Homepage: https://cors-test.codehappy.dev
- Size: 332 KB
- Stars: 57
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE_MIT
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# CORS Tester
The code for [cors-test.codehappy.dev](https://cors-test.codehappy.dev). A tiny tool for checking if your CORS headers are setup correctly.
## How it works
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.
## Development
For development you need to install [wrangler](https://github.com/cloudflare/wrangler).
Then run `wrangler dev` to start the server.
## Production
It's auto deployed via GitHub Actions.
