Skip to content

avoid passing the saved cookies everytime the page get requested #1

Open
@unixfox

Description

@unixfox

Mimic the normal behavior by passing set-cookie once.
Code that I used but needs to be tweaked so that the cookies doesn't contain secure, expires, domain:

Object.keys(responseHeaders).forEach(header => {
  const splitMultipleHeaders = responseHeaders[header].split("\n");
  if (splitMultipleHeaders.length > 1)
     ctx.set(header, splitMultipleHeaders);
  else
     ctx.set(header, jsesc(responseHeaders[header]));
});

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions