@nocobase/cli-v1 2.1.25 → 2.1.26

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.
package/nocobase.conf.tpl CHANGED
@@ -36,10 +36,11 @@ server {
36
36
  gzip on;
37
37
  gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
38
38
 
39
- location ~* ^{{publicPath}}storage/uploads/(.*\.(?:htm|html|svg|svgz|xhtml))$ {
39
+ location ~* ^{{publicPath}}storage/uploads/(.*\.(?:htm|html|pdf|svg|svgz|xht|xhtml|xml|xsl|xslt))$ {
40
40
  alias {{cwd}}/storage/uploads/$1;
41
41
  add_header Cache-Control "public";
42
42
  add_header Content-Disposition "attachment" always;
43
+ add_header Content-Security-Policy "sandbox" always;
43
44
  add_header X-Content-Type-Options "nosniff" always;
44
45
  access_log off;
45
46
  autoindex off;
@@ -48,6 +49,7 @@ server {
48
49
  location {{publicPath}}storage/uploads/ {
49
50
  alias {{cwd}}/storage/uploads/;
50
51
  add_header Cache-Control "public";
52
+ add_header Content-Security-Policy "sandbox" always;
51
53
  add_header X-Content-Type-Options "nosniff" always;
52
54
  access_log off;
53
55
  autoindex off;
@@ -55,6 +57,8 @@ server {
55
57
  location ~* \.md$ {
56
58
  default_type text/markdown;
57
59
  add_header Content-Disposition "inline";
60
+ add_header Content-Security-Policy "sandbox" always;
61
+ add_header X-Content-Type-Options "nosniff" always;
58
62
  }
59
63
  }
60
64
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/cli-v1",
3
- "version": "2.1.25",
3
+ "version": "2.1.26",
4
4
  "description": "",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./src/index.js",
@@ -9,9 +9,9 @@
9
9
  "nocobase-v1": "./bin/index.js"
10
10
  },
11
11
  "dependencies": {
12
- "@nocobase/cli": "2.1.25",
12
+ "@nocobase/cli": "2.1.26",
13
13
  "@nocobase/license-kit": "^0.3.8",
14
- "@nocobase/utils": "2.1.25",
14
+ "@nocobase/utils": "2.1.26",
15
15
  "chalk": "^4.1.1",
16
16
  "commander": "^9.2.0",
17
17
  "deepmerge": "^4.3.1",
@@ -33,5 +33,5 @@
33
33
  "url": "git+https://github.com/nocobase/nocobase.git",
34
34
  "directory": "packages/core/cli"
35
35
  },
36
- "gitHead": "f3326a2681004deee97b563fb6ab04744e26ac71"
36
+ "gitHead": "b25700115794487b342ac33a63a1a988c75c112c"
37
37
  }