mirror of
https://github.com/expressjs/expressjs.com.git
synced 2026-02-26 02:54:58 +00:00
13 lines
240 B
Plaintext
13 lines
240 B
Plaintext
section
|
|
h3(id='app.enabled') app.enabled(name)
|
|
|
|
p.
|
|
Check if setting <code>name</code> is enabled.
|
|
|
|
+js.
|
|
app.enabled('trust proxy');
|
|
// => false
|
|
|
|
app.enable('trust proxy');
|
|
app.enabled('trust proxy');
|
|
// => true |