kwhitley/itty.dev

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

Closed this issue · 1 comments

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

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!