r0man / ring-cors

Ring middleware for Cross-Origin Resource Sharing.
http://github.com/r0man/ring-cors
166 stars 44 forks source link

not allowed return handler result instead of nil #16

Closed gbuisson closed 7 years ago

gbuisson commented 7 years ago

fixes #11

This PR changes the behavior when a request is not allowed so that it returns the unaltered handler result instead of nil.

The expected change is that the browser shouldn't evaluate the response and trigger a CORS error on the developer console instead of displaying 404 error page.

r0man commented 7 years ago

@gbuisson Thanks! Just pushed 0.1.9 to Clojars.