itty-cors
itty-cors copied to clipboard
Dead-simple CORS handling for any itty-router API (test with Cloudflare Workers, but works anywhere)!
**Now** const { preflight, corsify } = createCors() gives error TypeError: Cannot read properties of undefined (reading 'origins') **Working for me** const { preflight, corsify } = createCors({ origins: ['*']...
Thanks for this great library and for itty, in general. There is a strange bug we are running into with Itty cors, which we cant figure out. The 1st time...
Hi, thanks for the library. Can you please add support for: `access-control-allow-headers`. Also, for me I have `origins: [ '*' ]`, but the response is: `Access-Control-Allow-Origin: null`. Not sure how...
also bump dependencies
Hi, Currently multiple `set-cookie` headers is folded into one header, eg: `'set-cookie': 'a=aValue; Max-Age=86400; Path=/w; HttpOnly; Secure; SameSite=None, b=bValue; Max-Age=86400; Path=/w; HttpOnly; Secure; SameSite=None',` However the correct header should be:...