@saltcorn/server 1.1.2-beta.0 → 1.1.2-beta.1
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/app.js +2 -2
- package/package.json +10 -10
package/app.js
CHANGED
|
@@ -32,7 +32,7 @@ const { getAllTenants } = require("@saltcorn/admin-models/models/tenant");
|
|
|
32
32
|
const path = require("path");
|
|
33
33
|
const helmet = require("helmet");
|
|
34
34
|
const wrapper = require("./wrapper");
|
|
35
|
-
const csrf = require("csurf");
|
|
35
|
+
const csrf = require("@dr.pogodin/csurf");
|
|
36
36
|
const { I18n } = require("i18n");
|
|
37
37
|
const { h1 } = require("@saltcorn/markup/tags");
|
|
38
38
|
const is = require("contractis/is");
|
|
@@ -160,7 +160,7 @@ const getApp = async (opts = {}) => {
|
|
|
160
160
|
helmetOptions.contentSecurityPolicy = false;
|
|
161
161
|
|
|
162
162
|
if (cross_domain_iframe) helmetOptions.xFrameOptions = false;
|
|
163
|
-
|
|
163
|
+
app.use(helmet(helmetOptions));
|
|
164
164
|
|
|
165
165
|
// TODO ch find a better solution
|
|
166
166
|
if (getState().getConfig("cors_enabled", true)) app.use(cors());
|
package/package.json
CHANGED
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saltcorn/server",
|
|
3
|
-
"version": "1.1.2-beta.
|
|
3
|
+
"version": "1.1.2-beta.1",
|
|
4
4
|
"description": "Server app for Saltcorn, open-source no-code platform",
|
|
5
5
|
"homepage": "https://saltcorn.com",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@aws-sdk/client-s3": "^3.735.0",
|
|
10
|
-
"@
|
|
11
|
-
"@saltcorn/
|
|
12
|
-
"@saltcorn/
|
|
13
|
-
"@saltcorn/
|
|
14
|
-
"@saltcorn/
|
|
15
|
-
"@saltcorn/
|
|
16
|
-
"@saltcorn/
|
|
17
|
-
"@saltcorn/
|
|
10
|
+
"@dr.pogodin/csurf": "^1.14.1",
|
|
11
|
+
"@saltcorn/base-plugin": "1.1.2-beta.1",
|
|
12
|
+
"@saltcorn/builder": "1.1.2-beta.1",
|
|
13
|
+
"@saltcorn/data": "1.1.2-beta.1",
|
|
14
|
+
"@saltcorn/admin-models": "1.1.2-beta.1",
|
|
15
|
+
"@saltcorn/filemanager": "1.1.2-beta.1",
|
|
16
|
+
"@saltcorn/markup": "1.1.2-beta.1",
|
|
17
|
+
"@saltcorn/plugins-loader": "1.1.2-beta.1",
|
|
18
|
+
"@saltcorn/sbadmin2": "1.1.2-beta.1",
|
|
18
19
|
"@socket.io/cluster-adapter": "^0.2.1",
|
|
19
20
|
"@socket.io/sticky": "^1.0.1",
|
|
20
21
|
"adm-zip": "0.5.16",
|
|
@@ -25,7 +26,6 @@
|
|
|
25
26
|
"cookie-parser": "^1.4.7",
|
|
26
27
|
"cookie-session": "^2.1.0",
|
|
27
28
|
"cors": "2.8.5",
|
|
28
|
-
"csurf": "^1.11.0",
|
|
29
29
|
"csv-stringify": "^6.5.2",
|
|
30
30
|
"dockerode": "~4.0.4",
|
|
31
31
|
"express": "^5.0.1",
|