-
Notifications
You must be signed in to change notification settings - Fork 16.5k
feat: [net] add "credentials" option to net.request #25284
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
Conversation
NB. this change depends on the current master roll: #24984 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Api looks better now 👍
Also useSessionCookies
was added for #8891 where users where only concerned with whether the cookies are completely handled by the store or not. So this change is reasonable for that too.
@MarshallOfSound this is not semver/major because it doesn't break old behavior. it'll be semver/major when we remove the old one. |
515d3c9
to
8fd33c0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
The API WG approved this at the Sept 21, 2020 meeting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs a rebase from master to fix the mac arm64 compile issues.
@jkleinsc ping |
Release Notes Persisted
|
* feat: [net] add "credentials" option to net.request * remove debugging log * add tests
* feat: [net] add "credentials" option to net.request * remove debugging log * add tests
* feat: [net] add "credentials" option to net.request * remove debugging log * add tests
Description of Change
This adds a new option to
net.request()
, "credentials", which more closely matches the behavior offetch()
than does "useSessionCookies".If "credentials" is specified it overrides "useSessionCookies", otherwise the default behavior remains unchanged.
Checklist
npm test
passesRelease Notes
Notes: Added a new "credentials" option for
net.request()
.