Skip to content

Bad middleware makes all requests hang #194

Description

@raymondfeng

In app.js, if we configure the LoopBack app as follows:

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions