From 1b049a5aa2144a724d0dd70a5dbc336da08608a6 Mon Sep 17 00:00:00 2001 From: vencelvarga Date: Fri, 19 Jul 2019 13:34:23 +0200 Subject: [PATCH 1/4] add new sandbox directive: allow-downloads-without-user-activation --- lib/config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/config.js b/lib/config.js index c657bf8..418c9b9 100644 --- a/lib/config.js +++ b/lib/config.js @@ -56,6 +56,7 @@ module.exports = { 'allow-presentation', 'allow-same-origin', 'allow-scripts', - 'allow-top-navigation' + 'allow-top-navigation', + 'allow-downloads-without-user-activation' ] } From 95ee70a2f16190f52936f3ce70a5ccfa397717f0 Mon Sep 17 00:00:00 2001 From: vencelvarga Date: Tue, 23 Jul 2019 16:25:44 +0200 Subject: [PATCH 2/4] Making sure the list is still alphabetized. --- lib/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config.js b/lib/config.js index 418c9b9..242adf0 100644 --- a/lib/config.js +++ b/lib/config.js @@ -47,6 +47,7 @@ module.exports = { strictDynamics: ["'strict-dynamic'", 'strict-dynamic'], requireSriForValues: ['script', 'style'], sandboxDirectives: [ + 'allow-downloads-without-user-activation', 'allow-forms', 'allow-modals', 'allow-orientation-lock', @@ -56,7 +57,6 @@ module.exports = { 'allow-presentation', 'allow-same-origin', 'allow-scripts', - 'allow-top-navigation', - 'allow-downloads-without-user-activation' + 'allow-top-navigation' ] } From 7cea20590abd956f8a03310e3708ff0aa4e62ff3 Mon Sep 17 00:00:00 2001 From: vencelvarga Date: Tue, 17 Mar 2020 16:06:52 +0100 Subject: [PATCH 3/4] Add 'allow-downloads' sandbox directive to config --- lib/config.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/config.ts b/lib/config.ts index d6a71c4..c2c92f0 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -48,6 +48,7 @@ export = { requireSriForValues: ['script', 'style'], sandboxDirectives: [ 'allow-downloads-without-user-activation', + 'allow-downloads', 'allow-forms', 'allow-modals', 'allow-orientation-lock', From bd449020fdc6ca333685e99810677874403ca38b Mon Sep 17 00:00:00 2001 From: vencelvarga Date: Tue, 17 Mar 2020 16:44:41 +0100 Subject: [PATCH 4/4] Reordering --- lib/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config.ts b/lib/config.ts index c2c92f0..9bd4437 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -47,8 +47,8 @@ export = { strictDynamics: ["'strict-dynamic'", 'strict-dynamic'], requireSriForValues: ['script', 'style'], sandboxDirectives: [ - 'allow-downloads-without-user-activation', 'allow-downloads', + 'allow-downloads-without-user-activation', 'allow-forms', 'allow-modals', 'allow-orientation-lock',