kwhitley / itty.dev

Documentation for itty ecosystem.
25 stars 15 forks source link

createCors is not a function, difference between doc example and code #24

Closed foufrix closed 4 months ago

foufrix commented 4 months ago

Hi, after trying this example

It gives me an error message stating, createCors is not a function, which suggests that no createCors function is exported.

After looking at issue #21 I saw that cors() should be used.

Either update the doc or the code, don't know which variable you want to keep :D

Thank you for the package!

EDIT:

After looking in depth saw that it's due to v4 to v5 migration

kwhitley commented 4 months ago

Thanks @foufrix!

Deleted old createCors.md page, which should remove it from polluting search... if you stumbled across it in a different way, please let me know!