From 84b79f30d7b2fafac5c75955f39fd2e3422fa872 Mon Sep 17 00:00:00 2001 From: Kimmo Puputti Date: Tue, 20 Mar 2018 11:05:23 +0200 Subject: [PATCH] Add self to the example directive default value --- server/csp.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/csp.js b/server/csp.js index 1f1cd7ae..5c2bce2d 100644 --- a/server/csp.js +++ b/server/csp.js @@ -81,7 +81,7 @@ module.exports = (reportUri, enforceSsl, reportOnly) => { // https://content-security-policy.com/ // Example: extend default img directive with custom domain - // const { imgSrc = [] } = defaultDirectives; + // const { imgSrc = [self] } = defaultDirectives; // const exampleImgSrc = imgSrc.concat('my-custom-domain.example.com'); const customDirectives = {