worker-template
CORS Preflight
đź‘· A template for handling CORS preflight requests with Workers.
With this Worker, you can handle CORS preflight requests. It passes GET, POST and HEAD requests through to the origin, while OPTIONS requests are answered directly.
index.js
is the content of the Workers script.
Wrangler
To generate using wrangler
wrangler generate myApp https://github.com/conzorkingkong/cors-preflight-template
Serverless
To deploy using serverless add a serverless.yml
file.