yakuza0 2.20.12 → 2.20.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,7 +18,15 @@ exports.default = function (config) {
18
18
 
19
19
  var cspObj = {};
20
20
  _yakuza._.forEach(csp, function (v, key) {
21
- cspObj[_yakuza._.kebabCase(key)] = v;
21
+ cspObj[_yakuza._.kebabCase(key)] = _yakuza._.compact(v.map(function (k) {
22
+ if (_config2.default.security.stupid && _config2.default.server.cspStrict) {
23
+ if (k === "*" || k === "data:" || k === "'unsafe-eval'" || k === "'unsafe-inline'") {
24
+ return '';
25
+ }
26
+ }
27
+
28
+ return k;
29
+ }));
22
30
  });
23
31
 
24
32
  if (!_config2.default.security.stupid) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yakuza0",
3
- "version": "2.20.12",
3
+ "version": "2.20.13",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -288,6 +288,7 @@ var render = function () {
288
288
  autoOpenBrowser: true,
289
289
  cookieSameSite: 'Lax',
290
290
  cspSwitch: true,
291
+ cspStrict: false,
291
292
  // ...mainConf.server,
292
293
  // ...ykConf.server,
293
294
  // csp,