mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
Fix error with the CSP header override of the antibot
This commit is contained in:
parent
ea6ae52539
commit
3ae9636d5a
1 changed files with 5 additions and 0 deletions
|
|
@ -47,6 +47,11 @@ function antibot:header()
|
|||
return self:ret(true, "client already resolved the challenge")
|
||||
end
|
||||
|
||||
if self.ctx.bw.uri ~= self.variables["ANTIBOT_URI"] then
|
||||
return self:ret(true, "Not antibot uri")
|
||||
end
|
||||
|
||||
|
||||
local header = "Content-Security-Policy"
|
||||
if self.variables["CONTENT_SECURITY_POLICY_REPORT_ONLY"] == "yes" then
|
||||
header = header .. "-Report-Only"
|
||||
|
|
|
|||
Loading…
Reference in a new issue