ConzorKingKong / cors-preflight-template

A template for handling CORS preflight requests with Cloudflare Workers

Home Page:https://workers.cloudflare.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

đź‘· 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.

About

A template for handling CORS preflight requests with Cloudflare Workers

https://workers.cloudflare.com

License:Apache License 2.0


Languages

Language:JavaScript 100.0%