After setting the cookie, there is no cookie information in the Application during browser debugging. After the page is refreshed, the cookie disappears and the program cannot obtain it. I don’t know where the problem is. Is there anything I need to pay attention to when setting the cookie?
The picture below shows the request and return information
The picture below is a screenshot of Application
I found the reason, it was caused by cross-domain, just add the following information
是否设置过cookie的生命周期,帖JS代码