Skip to content

Commit

Permalink
WEBUI-1446: Manage CSP headers without the insecure unsafe-inline dir…
Browse files Browse the repository at this point in the history
…ective
  • Loading branch information
alokhyland committed Nov 19, 2024
1 parent b4cf21f commit bb3d4a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
5 changes: 0 additions & 5 deletions addons/nuxeo-spreadsheet/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const { resolve } = require('path');
const { ProvidePlugin } = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const htmlWebpackInjectAttributesPlugin = require('html-webpack-inject-attributes-plugin');

module.exports = {
entry: {
Expand All @@ -17,9 +16,5 @@ module.exports = {
chunks: ['spreadsheet.app'],
template: resolve(__dirname, 'app', 'index.html'),
}),
/* eslint-disable-next-line new-cap */
new htmlWebpackInjectAttributesPlugin({
nonce: 'dummy',
}),
],
};
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"expose-loader": "^1.0.1",
"glob": "^7.1.3",
"html-loader": "^1.3.2",
"html-webpack-inject-attributes-plugin": "^1.0.6",
"html-webpack-plugin": "^5.6.0",
"http-server": "^0.11.1",
"husky": "^4.2.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ limitations under the License.
</div>
</nuxeo-app>
<script src="vendor/webcomponentsjs/webcomponents-loader.js" nonce="dummy"></script>
<script src="vendor/webcomponentsjs/webcomponents-loader.js"></script>
<script src="vendor/html-imports/html-imports.min.js" nonce="dummy"></script>
<script src="vendor/html-imports/html-imports.min.js"></script>
<script src="vendor/web-animations/web-animations-next-lite.min.js" nonce="dummy"></script>
<script src="vendor/web-animations/web-animations-next-lite.min.js"></script>
<script src="config.jsp" nonce="dummy"></script>
<script src="config.jsp"></script>
<script src="main.bundle.js" nonce="dummy"></script>
<script src="main.bundle.js"></script>
</body>
Expand Down

0 comments on commit bb3d4a0

Please sign in to comment.