mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
chore: Add interest-cohort directive to Permissions-Policy header in headers.lua only if it's not already present
This commit is contained in:
parent
a83ea84f50
commit
b01a4822ad
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ function headers:header()
|
|||
ngx_header["Content-Security-Policy-Report-Only"] = self.variables[variable]
|
||||
elseif header == "Permissions-Policy" then
|
||||
ngx_header[header] = self.variables[variable]
|
||||
if self.variables["DISABLE_FLOC"] == "yes" then
|
||||
if self.variables["DISABLE_FLOC"] == "yes" and not ngx_header[header]:find("interest-cohort") then
|
||||
ngx_header[header] = ngx_header[header] .. ", interest-cohort=()"
|
||||
end
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue