Read more about the CORS topic in MDN.
This project is a Cloudflare Worker or Function as a Services (Faas) deployed on Cloudflare.
The function is used in the mobile app and web app App Curriculum.
- Open the project in your terminal, and install the packages running this command
npm i
. - Run locally the worker
npx wrangler dev
ornpm start
. - Open a browser tab at http://localhost:8787/ to see your worker in action
- Run
npx wrangler deploy
ornpm run deploy
to publish your worker
- Cloudflare Workers https://developers.cloudflare.com/workers/
- Cloudflare Wrangler or CLI https://developers.cloudflare.com/workers/wrangler
- Workers configuration file
wrangler.toml
in https://developers.cloudflare.com/workers/wrangler/configuration/ and https://developers.cloudflare.com/workers/configuration/sites/configuration/ - Code examples https://github.com/cloudflare?q=worker&type=all&language=javascript