Page a calls the window.open 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 winodw.open method.
This address will be opened via window.open 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 window.open (). look at this demo, it is very detailed