Like the title, I found the problem by referring to the address below. I hope the experts can give me some advice. Thank you
https://blog.csdn.net/sinat_36521655/article/details/104844667?fps=1&locationNum= 2
It is possible to set 2 (modify browser settings) according to the tutorial. For setting 1 (set-cookie), I tried using PHP's header function and modifying the nginx configuration, but it didn't work.
I speculate on the reasons for the failure.
The setting method is wrong, my setting method is
php:
##header("Set-Cookie: widget_session =abc123; SameSite=None; Secure;"); nginx:add_header Set-Cookie "widget_session=abc123; SameSite=None; Secure;"2. Alibaba Cloud adds load balancing