From a84488eed0529464dd6a559289868d9cd957f4b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Colombaro?= Date: Mon, 14 Jun 2021 16:38:30 +0200 Subject: [PATCH] Make `Content-Security-Policy` disallow 'object-src' by default Closes https://github.com/h5bp/server-configs-apache/issues/190 --- h5bp/security/content-security-policy.conf | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/h5bp/security/content-security-policy.conf b/h5bp/security/content-security-policy.conf index 6461ee13..c2544f00 100644 --- a/h5bp/security/content-security-policy.conf +++ b/h5bp/security/content-security-policy.conf @@ -41,10 +41,17 @@ # The `frame-ancestors` directive helps avoid "Clickjacking" attacks and # is similar to the `X-Frame-Options` header. # -# Browsers that support the CSP header will ignore `X-Frame-Options` if +# Browsers that support the CSP header should ignore `X-Frame-Options` if # `frame-ancestors` is also specified. # -# (5) Forces the browser to treat all the resources that are served over HTTP +# (5) Elements controlled by `object-src` are perhaps coincidentally +# considered legacy HTML elements and are not receiving new standardized +# features (such as the security attributes `sandbox` or `allow` for +# `