diff --git a/content/meta/csp-bug-reproduction.md b/content/meta/csp-bug-reproduction.md index 4b26c84..cb93212 100644 --- a/content/meta/csp-bug-reproduction.md +++ b/content/meta/csp-bug-reproduction.md @@ -15,7 +15,7 @@ What this page demonstrates This is a test page that demonstrates the following Content-Security-Policy (CSP): ``` -default-src 'none' 'report-sample';img-src 'self';style-src 'sha256-7cS8Hu9ov7dRhfioeeb9J8mtB9/iLLpVIZsMM+BJUcs=' 'report-sample';frame-ancestors 'none';base-uri 'none';form-action https://seirdy.one/webmentions/receive https://seirdy.one/search/;manifest-src 'self';sandbox allow-same-origin allow-scripts allow-forms;report-uri https://collector.seirdy.one;connect-src https://collector.seirdy.one +default-src 'none' 'report-sample';img-src 'self';style-src 'sha256-7cS8Hu9ov7dRhfioeeb9J8mtB9/iLLpVIZsMM+BJUcs=' 'report-sample';frame-ancestors 'none';base-uri 'none';form-action https://seirdy.one/webmentions/receive https://seirdy.one/search/;manifest-src 'self';media-src 'self';sandbox allow-same-origin allow-scripts allow-forms;report-uri https://collector.seirdy.one;connect-src https://collector.seirdy.one ``` Here's a multi-line version, to reduce horizontal scrolling: @@ -28,6 +28,7 @@ frame-ancestors 'none'; base-uri 'none'; form-action https://seirdy.one/webmentions/receive https://seirdy.one/search/; manifest-src 'self'; +media-src 'self'; sandbox allow-same-origin allow-scripts allow-forms; report-uri https://collector.seirdy.one; connect-src https://collector.seirdy.one @@ -50,10 +51,11 @@ upgrade-insecure-requests; sandbox allow-same-origin allow-forms ``` -This page has a CSP that differs in three ways: +This page has a CSP that differs in four ways: - It includes a reporting endpoint - It specifies an `allow-scripts` parameter on its `sandbox` directive +- It allows loading media (necessary for the `