In app.js, if we configure the LoopBack app as follows: ``` js app.use(require('cors')); ``` All requests will hang. Please note the correct usage of cors is `app.use(require('cors')());` The issue was discovered by @Schoonology
Activity
ritch commentedon Feb 19, 2014
This is really an issue with express middleware. Any function can be a middleware, and middleware are not required to callback.
A potential helper would be middleware specific timeouts. Maybe something like this...
bajtos commentedon Jul 15, 2014
In my opinion, this issue should be addressed by expressjs.
fabien commentedon Aug 23, 2014
Now that Express is here at Strongloop, I think we should close this here and open a ticket there.
dougwilson commentedon Nov 7, 2014
Use the
connect-timeoutmodule.bajtos commentedon Nov 26, 2014
The declarative way of registering middleware via
middleware.jsonmade this issue obsolete (see #739).