Google Chrome 80+ version, single sign-on cannot write cookies across domains
Dkou
Dkou 2020-03-19 17:43:46
0
0
1380

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

Dkou
Dkou

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template