Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(build,config) disable config whitelist in dev mode
Saúl Ibarra Corretgé7f601db3499e
diff --git a/react/features/base/config/functions.any.ts b/react/features/base/config/functions.any.tsindex 44b41878f9..a12f7316c9 100644--- a/react/features/base/config/functions.any.ts+++ b/react/features/base/config/functions.any.ts@@ -193,6 +193,13 @@ export function overrideConfigJSON(config: IConfig, interfaceConfig: any, json:* that are whitelisted.*/export function getWhitelistedJSON(configName: 'interfaceConfig' | 'config', configJSON: any): Object {+ // Disable whitelisting in dev mode.+ if (typeof __DEV__ !== 'undefined' && __DEV__) {+ logger.warn('Whitelisting is disabled in dev mode, accepting any overrides');++ return configJSON;+ }+if (configName === 'interfaceConfig') {return pick(configJSON, INTERFACE_CONFIG_WHITELIST);} else if (configName === 'config') {diff --git a/webpack.config.js b/webpack.config.jsindex cde1e404f3..02bf79b4e4 100644--- a/webpack.config.js+++ b/webpack.config.js@@ -288,6 +288,9 @@ module.exports = (_env, argv) => {plugins: [...config.plugins,...getBundleAnalyzerPlugin(analyzeBundle, 'app'),+ new webpack.DefinePlugin({+ '__DEV__': !isProduction+ }),new webpack.IgnorePlugin({resourceRegExp: /^canvas$/,contextRegExp: /resemblejs$/