We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76d051e commit 07afafcCopy full SHA for 07afafc
webpack.config.js
@@ -1,4 +1,11 @@
1
const path = require('path');
2
+const crypto = require('crypto');
3
+
4
+// Workaround for loaders using "md4" by default, which is not supported in FIPS-compliant OpenSSL
5
+// See https://github.com/jupyterlab/jupyterlab/issues/11248
6
+const cryptoOrigCreateHash = crypto.createHash;
7
+crypto.createHash = (algorithm) =>
8
+ cryptoOrigCreateHash(algorithm == 'md4' ? 'sha256' : algorithm);
9
10
module.exports = {
11
entry: ['babel-polyfill', '@jupyterlab/apputils/lib/sanitizer'],
0 commit comments