diff --git a/Jenkinsfile b/Jenkinsfile index a4b9ecafb0d385249636c787bf713dc632ae34cb..087c9be74b9b8542bf972adddc02f6a5ea6fe253 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -43,7 +43,7 @@ pipeline { sh 'npm cache verify' sh 'npm install' - sh 'npm run build' + sh 'NODE_ENV=production npm run build' //sh 'npm run test' if (isMasterBranch()) { diff --git a/client/docker/nginx.conf b/client/docker/nginx.conf index f2e3522c1ac8084c3315cd0c97187da4fa34aa80..054e3ac1167496ae8fe8d24abb9bb875d3eb7e0d 100644 --- a/client/docker/nginx.conf +++ b/client/docker/nginx.conf @@ -7,6 +7,7 @@ http { add_header Strict-Transport-Security "max-age=31536000" always; add_header X-Frame-Options "SAMEORIGIN" always; add_header X-Content-Type-Options "nosniff" always; + add_header Content-Security-Policy "default-src 'self'; style-src 'self' 'unsafe-inline'; object-src 'none'; child-src 'self'; frame-ancestors 'none'; base-uri 'none'; upgrade-insecure-requests; require-trusted-types-for 'script'" always; add_header X-XSS-Protection "0" always; add_header Referrer-Policy "no-referrer" always; diff --git a/client/package-lock.json b/client/package-lock.json index 8b0465cfd1e55762d818ddc5e2ff1ddfa4ebca90..a65cf2950ddc666009c15741865399adbb3b0bd5 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -1,12 +1,12 @@ { "name": "ozg-frontend-client", - "version": "0.3.1", + "version": "1.4.0-SNAPSHOT", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ozg-frontend-client", - "version": "0.3.1", + "version": "1.4.0-SNAPSHOT", "dependencies": { "axios": "^1.5.1", "react": "^18.2.0", diff --git a/client/webpack.config.js b/client/webpack.config.js index 425e4d8557804bc54415939fbc5bd40adbdd6102..0a56aeed1cee57b4e7678b63e75fcfb3dc2cd72b 100644 --- a/client/webpack.config.js +++ b/client/webpack.config.js @@ -47,7 +47,7 @@ module.exports = { publicPath: "/" }, mode: prod ? "production" : "development", - devtool: prod ? undefined : "eval-source-map", + devtool: prod ? "source-map" : "eval-source-map", module: { rules: [ {