koajs / cors

Cross-Origin Resource Sharing(CORS) for koa
Other
734 stars 80 forks source link

warning using koa@next #29

Closed ralyodio closed 6 years ago

ralyodio commented 7 years ago
Mon, 26 Dec 2016 18:51:50 GMT koa deprecated Support for generators will been removed in v3. See the documentation for examples of how to convert old middleware https://github.com/koajs/koa/tree/v2.x#old-signature-middleware-v1x at src/app.js:18:4
scttcper commented 7 years ago

Make sure you're using kcors@2

https://github.com/koajs/cors/tree/v2.x

ralyodio commented 7 years ago

How do I install v2 from npm? I tried npm install kcors@next is that wrong?

scttcper commented 7 years ago

i have "kcors": "^2.2.0" in my package.json

GuillaumeLeclerc commented 7 years ago

I think it should be the default now since the koa version changed

fengmk2 commented 6 years ago

close by https://github.com/koajs/cors/pull/51