Skip to content

Setting cors:true in config.json throws exception #1810

@barocsi

Description

@barocsi

\node_modules\cors\lib\index.js:188
o.origin = defaults.origin;
^
TypeError: Cannot assign to read only property 'origin' of true
at middlewareWrapper (\node_modules\cors\lib\index.js:188:16)
at setupCors (\node_modules\loopback-explorer\lib\swagger.js:145:18)
[..]

"loopback-boot": "^2.6.5",
"loopback-component-passport": "^1.5.0",
"loopback-connector-mongodb": "1.13.0",
"loopback-datasource-juggler": "^2.41.1",

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions