nginx Cookie-Flag open source code example
Example 1: nginx http cookies module
location / {
set_cookie_flag Secret HttpOnly secure SameSite;
set_cookie_flag * HttpOnly;
set_cookie_flag SessionID SameSite=Lax secure;
set_cookie_flag SiteToken SameSite=Strict;
}
Example 2: nginx http cookies module
git clone git://github.com:AirisX/nginx_cookie_flag_module.git