Cookie-Flag
Set the flags HttpOnly
, SameSite
, and secure
for cookies in Set-Cookie
upstream response headers.
Installation Instructions
Install the Cookie-Flag module.
For Amazon Linux, CentOS, Oracle Linux, and RHEL:
$ yum install nginx-plus-module-cookie-flag
For Debian and Ubuntu:
$ apt-get install nginx-plus-module-cookie-flag
For SLES:
$ zypper install nginx-plus-module-cookie-flag
Put the following directive in the top-level (“main”) context of the main NGINX Plus configuration file, /etc/nginx/nginx.conf:
load_module modules/ngx_http_cookie_flag_filter_module.so;
Perform additional configuration as required by the module.
Reload NGINX Plus to enable the module:
$ nginx -t && nginx -s reload