#!/usr/bin/env python3 import sys sys.stdout.write( 'Content-Security-Policy: img-src \'self\'; report-uri http://localhost:8000/contentextensions/resources/save-ping.py?test=contentextensions-block-csp-report\r\n' 'Content-Type: text/html\r\n\r\n' ) print(''' This test creates a CSP violation report, but the report URL matches a 'block' rule. ''')