mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
allow CSP reports to be sent when header isn't set by Discourse (#6594)
This commit is contained in:
@ -30,6 +30,6 @@ class CspReportsController < ApplicationController
|
||||
end
|
||||
|
||||
def report_collection_enabled?
|
||||
ContentSecurityPolicy.enabled? && SiteSetting.content_security_policy_collect_reports
|
||||
SiteSetting.content_security_policy_collect_reports
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user