yakuza0 2.21.0-beta.9 → 2.21.0

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.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.21.0-beta.9",
3
+ "version": "2.21.0",
4
4
  "description": "yakuza0 with nuxt",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -299,6 +299,7 @@ var render = function () {
299
299
  autoOpenBrowser: true,
300
300
  cookieSameSite: 'Lax',
301
301
  cspSwitch: true,
302
+ cspStrict: false,
302
303
  // ...mainConf.server,
303
304
  // ...ykConf.server,
304
305
  // csp,