用Nginx作为反向代理,你如何在cookie中添加samesite = strict或samesite = lax?
使用此代码,您可以使用proxy_cookie_path ( http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cookie_path )将所有应用程序Cookie定义为安全,高度安全和/或相同的proxy_cookie_path
location / { # your usual config ... # hack, set all cookies to secure, httponly and samesite (strict or lax) proxy_cookie_path / "/; secure; HttpOnly; SameSite=strict"; }