koajs/cors

breaking change in 1.2.0

targos opened this issue · 4 comments

In 677833d an unconditional yield next; has been added at the end of the middleware. It is breaking preflight requests on our servers because in earlier versions the middleware chain stopped at this.status = 204.

I've experienced the same problem and downgraded to 1.1.0 for the moment. What is the intended way to solve this? In my opinion kcors should handle the preflight request by itself. Otherwise I would need to add another middleware to 'close' options-requests before they will be responded with 404.

sorry, it will fixed in #16

Thanks!

Thank you, good job!