Deactivated meta CSP via HTML due to management via infintio.nexus

This commit is contained in:
2025-08-06 16:26:35 +02:00
parent 5edb9d19cf
commit 34f9d773bd

View File

@@ -34,6 +34,12 @@ body_filter_by_lua_block {
local whole = table.concat(ngx.ctx.buf)
ngx.ctx.buf = nil -- clear buffer
-- remove html CSP, due to management via infinito nexus policies
whole = whole:gsub(
'<meta[^>]-http%-equiv=["\']Content%-Security%-Policy["\'][^>]->%s*',
''
)
-- build a list of head-injection snippets
local head_snippets = {}