Desc
I used http-cookie-agent in my project to address cookie-related issues in Node.js. Unfortunately, it currently seems unable to correctly capture cookies written by this module. (I'm not sure if it's a timing issue or a problem with other logic)
...
To Resolve?
Depending on the input-output ratio, I believe it’s worth resolving.
...
Resolutions(Optional)
After a brief debugging session, I believe this seems to be a order issue. The http-cookie-agent modifies cookies after node-network-devtools, so node-network-devtools cannot detect those cookie changes.
I think we should ensure that, just like Chrome's DevTools, the correct results are displayed regardless of how or when the user interacts with it.
I believe it might be possible to rewrite request-related methods to intercept cookie writes, thereby fulfilling this requirement. This approach not only ensures compatibility with http-cookie-agent but also enhances cookie capture capabilities in other scenarios.
...
Desc
I used
http-cookie-agentin my project to address cookie-related issues in Node.js. Unfortunately, it currently seems unable to correctly capture cookies written by this module. (I'm not sure if it's a timing issue or a problem with other logic)...
To Resolve?
Depending on the input-output ratio, I believe it’s worth resolving.
...
Resolutions(Optional)
After a brief debugging session, I believe this seems to be a order issue. The
http-cookie-agentmodifies cookies afternode-network-devtools, sonode-network-devtoolscannot detect those cookie changes.I think we should ensure that, just like Chrome's DevTools, the correct results are displayed regardless of how or when the user interacts with it.
I believe it might be possible to rewrite request-related methods to intercept cookie writes, thereby fulfilling this requirement. This approach not only ensures compatibility with
http-cookie-agentbut also enhances cookie capture capabilities in other scenarios....