app.enable()

app.enable(name)

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

app.enable('trust proxy');
app.get('trust proxy');
// => true
doc_Express
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.