nginx_cookie_flag_module

  sre


https://github.com/AirisX/nginx_cookie_flag_module

./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_v2_module --with-http_gzip_static_module --with-ipv6 --with-http_sub_module --with-openssl=../openssl-1.0.2n --with-openssl-opt=enable-tls1_3 --with-ld-opt=-ljemalloc --add-module=../nginx-rtmp-module-master --add-module=../ngx_devel_kit-0.3.0 --add-module=../lua-nginx-module-0.10.12rc1 --add-module=../echo-nginx-module --with-stream --with-stream_ssl_module --add-module=../nginx_cookie_flag_module-master
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;
}
set_cookie_flag
-   -
Syntax  set_cookie_flag <cookie_name|*> [HttpOnly] [secure] [SameSite|SameSite=[Lax|Strict]];
Default -
Context server, location
Description: Add flag to desired cookie.

LEAVE A COMMENT

Captcha Code