-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A bug on the doc page 'Using current context' #2438
Comments
Actually it is enabled by default. enableHttpContext only let's the req and res be added to it.
Which does not disable cls itself unfortunately. I have this as a requirement right now, I created #2439 do handle it. |
@seriousben I don't think it's enabled by default. |
Here's my server config from a brand new scaffolded Loopback 2.34.1 application: {
"restApiRoot": "/api",
"host": "0.0.0.0",
"port": 3000,
"remoting": {
"context": false,
"rest": {
"normalizeHttpPath": false,
"xml": false
},
"json": {
"strict": false,
"limit": "100kb"
},
"urlencoded": {
"extended": true,
"limit": "100kb"
},
"cors": false,
"handleErrors": false
},
"legacyExplorer": false
}
|
@bajtos Since currentContext is deprecated, should we spend time on this issue? |
As part of working on #2439, I have changed the doc page a bit. Right now, new applications are scaffolded with I am closing this issue as fixed. |
It says
but actually you have to set
enableHttpContext
totrue
notfalse
link: https://docs.strongloop.com/display/APIC/Using+current+context
The text was updated successfully, but these errors were encountered: