View this package for all Ubuntu releases →

How to install nginx-module-cookie-flag in Ubuntu 26.04 (resolute)

NGINX cookie flag module

Vendor: GetPageSpeed https://nginx-extras.getpagespeed.com/modules/cookie-flag/

Install

curl -fsSL https://extras.getpagespeed.com/release-latest.deb -o /tmp/getpagespeed-release.deb
sudo apt-get install -y /tmp/getpagespeed-release.deb
rm /tmp/getpagespeed-release.deb
sudo apt-get update
sudo apt-get install -y nginx-module-cookie-flag

Installing packages requires an active GetPageSpeed subscription. For other releases and channels, use the setup wizard.

Description

This NGINX module allows to set the flags "HttpOnly", "secure" and "SameSite" for cookies in the "Set-Cookie" upstream response headers. The register of letters for the flags doesn't matter as it will be converted to the correct value. The order of cookie declaration among multiple directives doesn't matter too. It is possible to set a default value using symbol "*". In this case flags will be added to the all cookies if no other value for them is overriden.

Packages

Package Size Built
nginx-module-cookie-flag_1.30.6+1.2.2-8~gps1+ubuntu2604+stable_amd64 8 KiB 2026-10-17
nginx-module-cookie-flag_1.30.6+1.2.2-8~gps1+ubuntu2604+stable_arm64 8 KiB 2026-10-17

Subscribe