This addon edits the CSP header(s) to include a missing 'report-sample' for certain directives if a report-uri endpoint is included.
Report-Sample-Injector Extension
This addon assumes that, if a developer specifies a report-uri endpoint within the CSP, they are interested in receiving violation reports. However, without an explicit 'report-sample' value for certain directives, the reports might (the behaviour is browser-dependent at the moment) look indistinguishable for different kinds of violations (e.g., inline handlers vs. inline scripts vs. javascript URIs for script-src).
The keyword 'report-sample', when specified for certain CSP directives, makes compliant browsers include the first 40 characters of the code that caused the violation in the report that is POSTed to the report-uri endpoint.
By injecting 'report-sample' where it is missing, if report-uri is present, this addon aims to help developers understand which portion of the website code is responsible for the violation(s).
Source Manifest.json
Similar Extensions
Custom Style Script 1 37 ★ 49.86KiB
GrowthBook DevTools 1 5 ★ 694KiB
Modify Header Value (HTTP Headers) 1 46 ★ 94.33KiB
Inssman: Open-Source: Modify HTTP Request 1 10 ★ 3.51MiB
Allow CSP: Content-Security-Policy 1 2 ★ 49.95KiB
CSP Evaluator 1 29 ★ 297KiB
Page Edit 1 31 ★ 229KiB
ModHeader - Modify HTTP headers 1 1061 ★ 676KiB
simple-modify-headers 1 18 ★ 144KiB
Content Security Policy (CSP) Generator 1 14 ★ 2.65MiB
Ahrefs SEO Toolbar: On-Page and SERP Tools 1 306 ★ 802KiB
The Stream Detector PLUS 1 1 ★ 24.25KiB
CSP Unblock 1 2 ★ 114KiB
Disable-CSP 1 0 ★ 34.07KiB
Disable Content Security Policy 1 5 ★ 14.05KiB
Text Spacing Editor 1 5 ★ 101KiB
Canvas LMS Mods (Basic) 1 10 ★ 245KiB
Code Formatter - JSON, CSS & JavaScript 1 15 ★ 1.38MiB
FlexHeaders - Modify HTTP Headers 1 6 ★ 416KiB
Gdoc Process Feedback 1 2 ★ 57.15KiB
Sitecore Author Toolbox 1 20 ★ 7.22MiB
WME Toolbox 1 232 ★ 905KiB
ConstEdit Word Processor 1 3 ★ 3.2MiB
DreamFactory API Tools 1 11 ★ 220KiB