Page A calls the window.open method to jump page B. How to set the cookie of page A to page B (AB page url is different)?

I am on page An and then I skip a spliced address through the winodw.open method.
this address is opened via window.open to download a file. But if you jump to B, there will be no cookie. What if something goes wrong
?


pass the value of cookie in the form of window.open (). You can see that this demo, is written in great detail


different domain names cannot share local information on the browser side, including cookies, so they cannot share

.
Menu