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
2016-05-02 16:34:24
Comments
Leave a Comment

Please login to continue.