Update dependency ember-cli-content-security-policy to v2 (#592)
* Update dependency ember-cli-content-security-policy to v2 * update configuration --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jeldrik Hanschke <admin@jhanschke.de>
This commit is contained in:
parent
2a4b1f8b73
commit
b62fee843c
4 changed files with 28 additions and 19 deletions
17
config/content-security-policy.js
Normal file
17
config/content-security-policy.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
module.exports = function () {
|
||||
return {
|
||||
delivery: ['meta'],
|
||||
enabled: true,
|
||||
failTests: true,
|
||||
policy: {
|
||||
'default-src': ["'none'"],
|
||||
'script-src': ["'self'"],
|
||||
'font-src': ["'self'"],
|
||||
'connect-src': ["'self'"],
|
||||
'img-src': ["'self'", "data:"],
|
||||
'style-src': ["'self'"],
|
||||
'media-src': ["'none'"],
|
||||
},
|
||||
reportOnly: false,
|
||||
};
|
||||
};
|
|
@ -23,17 +23,6 @@ module.exports = function(environment) {
|
|||
// Here you can pass flags/options to your application instance
|
||||
// when it is created
|
||||
},
|
||||
|
||||
contentSecurityPolicy: {
|
||||
'default-src': "'none'",
|
||||
'script-src': "'self'",
|
||||
'font-src': "'self'",
|
||||
'connect-src': "'self'",
|
||||
'img-src': "'self' data:",
|
||||
'style-src': "'self'",
|
||||
'media-src': "'none'",
|
||||
},
|
||||
contentSecurityPolicyMeta: true,
|
||||
};
|
||||
|
||||
if (environment === 'development') {
|
||||
|
|
|
@ -42,7 +42,7 @@
|
|||
"ember-cli-browserstack": "^2.0.0",
|
||||
"ember-cli-bundlesize": "^0.3.0",
|
||||
"ember-cli-clipboard": "^0.16.0",
|
||||
"ember-cli-content-security-policy": "^1.0.0",
|
||||
"ember-cli-content-security-policy": "^2.0.0",
|
||||
"ember-cli-dependency-checker": "^3.2.0",
|
||||
"ember-cli-deprecation-workflow": "^1.0.1",
|
||||
"ember-cli-flash": "^2.0.0",
|
||||
|
|
17
yarn.lock
17
yarn.lock
|
@ -5430,7 +5430,7 @@ chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.4.1, chalk@^2.4.2:
|
|||
escape-string-regexp "^1.0.5"
|
||||
supports-color "^5.3.0"
|
||||
|
||||
chalk@^4.0.0, chalk@^4.1.0:
|
||||
chalk@^4.0.0, chalk@^4.1.0, chalk@^4.1.1:
|
||||
version "4.1.2"
|
||||
resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01"
|
||||
integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==
|
||||
|
@ -6784,13 +6784,16 @@ ember-cli-clipboard@^0.16.0:
|
|||
ember-cli-babel "^7.26.6"
|
||||
ember-cli-htmlbars "^5.7.1"
|
||||
|
||||
ember-cli-content-security-policy@^1.0.0:
|
||||
version "1.1.1"
|
||||
resolved "https://registry.yarnpkg.com/ember-cli-content-security-policy/-/ember-cli-content-security-policy-1.1.1.tgz#7d91a695319d8f99c317f3a594fba77bbfedf6c7"
|
||||
integrity sha512-QgGAFt1nmsb0qF2YXI5iSM7jJVb09R2hrfX7uR+kkXMb5VyNQXdo2ZlX/DuIbePQVY4q9THpRh8Yf0UHJNbvDQ==
|
||||
ember-cli-content-security-policy@^2.0.0:
|
||||
version "2.0.3"
|
||||
resolved "https://registry.yarnpkg.com/ember-cli-content-security-policy/-/ember-cli-content-security-policy-2.0.3.tgz#833eca6be4d625f8b1b85cf5bad62544b535b483"
|
||||
integrity sha512-tSGRbR2XiOjHk7oEH7LVF1y5S643rUEjl3mujI6EYPkrQbHaV0WdLyIWJkLvuP1KGnjBfvnLCyiKDFu6z2PjVg==
|
||||
dependencies:
|
||||
body-parser "^1.17.0"
|
||||
chalk "^2.0.0"
|
||||
chalk "^4.1.1"
|
||||
debug "^4.3.1"
|
||||
ember-cli-babel "^7.26.3"
|
||||
ember-cli-version-checker "^5.0.2"
|
||||
|
||||
ember-cli-dependency-checker@^3.2.0:
|
||||
version "3.3.2"
|
||||
|
@ -7153,7 +7156,7 @@ ember-cli-version-checker@^4.1.0:
|
|||
semver "^6.3.0"
|
||||
silent-error "^1.1.1"
|
||||
|
||||
ember-cli-version-checker@^5.1.1, ember-cli-version-checker@^5.1.2:
|
||||
ember-cli-version-checker@^5.0.2, ember-cli-version-checker@^5.1.1, ember-cli-version-checker@^5.1.2:
|
||||
version "5.1.2"
|
||||
resolved "https://registry.yarnpkg.com/ember-cli-version-checker/-/ember-cli-version-checker-5.1.2.tgz#649c7b6404902e3b3d69c396e054cea964911ab0"
|
||||
integrity sha512-rk7GY+FmLn/2e22HsZs0Ycrz8HQ1W3Fv+2TFOuEFW9optnDXDgkntPBIl6gact/LHsfBM5RKbM3dHsIIeLgl0Q==
|
||||
|
|
Loading…
Reference in a new issue