You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ma...@apache.org on 2025/12/12 20:19:03 UTC
(superset) 01/01: fix(webpack): include devserverHost in allowedHosts for Docker environments
This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch test-superset-env-in-agor
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 03089fe27865563675eef00b593c28c3016e9df2
Author: Maxime Beauchemin <ma...@gmail.com>
AuthorDate: Fri Dec 12 20:18:47 2025 +0000
fix(webpack): include devserverHost in allowedHosts for Docker environments
When running webpack-dev-server with WEBPACK_DEVSERVER_HOST=0.0.0.0 in
Docker environments, external IP access was blocked because allowedHosts
was hardcoded to only allow localhost variants. This adds devserverHost
to the allowedHosts list so that accessing the dev server via external
IPs works when explicitly configured to bind to all interfaces.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <no...@anthropic.com>
---
superset-frontend/webpack.config.js | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/superset-frontend/webpack.config.js b/superset-frontend/webpack.config.js
index 7e424d73b7..36522596d7 100644
--- a/superset-frontend/webpack.config.js
+++ b/superset-frontend/webpack.config.js
@@ -632,7 +632,16 @@ if (isDevMode) {
hot: true,
host: devserverHost,
port: devserverPort,
- allowedHosts: ['localhost', '.localhost', '127.0.0.1', '::1', '.local'],
+ allowedHosts: [
+ ...new Set([
+ devserverHost,
+ 'localhost',
+ '.localhost',
+ '127.0.0.1',
+ '::1',
+ '.local',
+ ]),
+ ],
proxy: [() => proxyConfig],
client: {
overlay: {