##// END OF EJS Templates
Log warning directly.
Kyle Kelley -
Show More
@@ -15,7 +15,8 b' class CSPReportHandler(IPythonHandler):'
15 def post(self):
15 def post(self):
16 '''Log a content security policy violation report'''
16 '''Log a content security policy violation report'''
17 csp_report = self.get_json_body()
17 csp_report = self.get_json_body()
18 self.log.warn(csp_report)
18 self.log.warn("Content security violation: %s",
19 self.request.body.decode('utf8', 'replace'))
19
20
20 default_handlers = [
21 default_handlers = [
21 (csp_report_uri, CSPReportHandler)
22 (csp_report_uri, CSPReportHandler)
General Comments 0
You need to be logged in to leave comments. Login now