app.disable()

app.disable(name)

Sets the Boolean setting name to false, where name is one of the properties from the app settings table. Calling app.set('foo', false) for a Boolean property is the same as calling app.disable('foo').

For example:

1
2
3
app.disable('trust proxy');
app.get('trust proxy');
// => false
doc_Express
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.