mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
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.
This commit is contained in:
parent
77d322b275
commit
a83ea84f50
1 changed files with 1 additions and 1 deletions
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue