nginx 为chrome客户端请求加SameSite=None;Secure

http {
  map $http_user_agent $samesite_attr {
    "~*chrome"	';Secure;SameSite=None';
  }

  server {
    location / {
      ...
      proxy_cookie_path ~/(.*) "/$1$samesite_attr";
    }
  }
}

posted on 2022-04-11 22:38  路过君  阅读(17)  评论(0编辑  收藏  举报

导航