Page a calls the method to jump to page b. What’s the matter? the cookie of page a is set to page b (the url of page AB is different)?

  node.js, question

I’m on page a and then i jump to a spliced address through the method.
This address will be opened via to download a file. But jump to b and there will be no cookie. Then something went wrong.
What should I do?

Pass the cookie value through the (). look at this demo, it is very detailed