From a83ea84f509d532effb390db31ca45dfdeacb789 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Diot?= Date: Tue, 25 Jun 2024 11:54:29 +0100 Subject: [PATCH] chore: Update headers.lua to include interest-cohort in Permissions-Policy header the proper way This commit modifies the headers.lua file to include the "interest-cohort" directive in the "Permissions-Policy" header. This change ensures that the "interest-cohort" directive is added to the header when the "DISABLE_FLOC" variable is set to "yes". By doing so, the application adheres to the necessary privacy settings and improves the handling of user data. --- src/common/core/headers/headers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/core/headers/headers.lua b/src/common/core/headers/headers.lua index 3d04c40f2..6e0ddba08 100644 --- a/src/common/core/headers/headers.lua +++ b/src/common/core/headers/headers.lua @@ -99,7 +99,7 @@ function headers:header() elseif header == "Permissions-Policy" then ngx_header[header] = self.variables[variable] if self.variables["DISABLE_FLOC"] == "yes" then - ngx_header[header] = ngx_header[header] .. "; interest-cohort=()" + ngx_header[header] = ngx_header[header] .. ", interest-cohort=()" end else ngx_header[header] = self.variables[variable]