konsumer / cf-itty-cors-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a simple example to illustrate issue with itty-cors.

From another origin in browser, run this to test:

console.log(await fetch('https://cf-itty-cors-example.dkonsumer-gummicube.workers.dev/test', {
  method: 'POST',
  body: JSON.stringify({ message: 'Hi!' })
}).then(r => r.json()))

About


Languages

Language:JavaScript 100.0%