Currently, superagent.agent() sends cookies to all requests without checking if the domains match the cookies and are allowed to use them.
This pull request solves this issue https://github.com/ladjs/superagent/issues/1758.
Checklist
[x] I have ensured my pull request is not behind the main or master branch of the original repository.
[x] I have rebased all commits where necessary so that reviewing this pull request can be done without having to merge it first.
[x] I have written a commit message that passes commitlint linting.
[x] I have ensured that my code changes pass linting tests.
[x] I have ensured that my code changes pass unit tests.
[x] I have described my pull request and the reasons for code changes along with context if necessary.
Currently,
superagent.agent()
sends cookies to all requests without checking if the domains match the cookies and are allowed to use them. This pull request solves this issue https://github.com/ladjs/superagent/issues/1758.Checklist