fix(webpack): include devserverHost in allowedHosts for Docker environments#36597
fix(webpack): include devserverHost in allowedHosts for Docker environments#36597mistercrunch merged 1 commit intomasterfrom
Conversation
…nments 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 <noreply@anthropic.com>
|
CodeAnt AI is reviewing your PR. |
Code Review Agent Run #fd9963Actionable Suggestions - 0Review Details
Bito Usage GuideCommands Type the following command in the pull request comment and save the comment.
Refer to the documentation for additional commands. Configuration This repository uses Documentation & Help |
Nitpicks 🔍
|
|
CodeAnt AI finished reviewing your PR. |
User description
SUMMARY
When running webpack-dev-server with
WEBPACK_DEVSERVER_HOST=0.0.0.0in Docker environments, external IP access was blocked becauseallowedHostswas hardcoded to only allow localhost variants.This adds
devserverHostto theallowedHostsarray so that accessing the dev server via external IPs works when explicitly configured to bind to all interfaces. TheSetensures deduplication ifdevserverHosthappens to match an existing entry.Before: Setting
WEBPACK_DEVSERVER_HOST=0.0.0.0binds the server to all interfaces, but requests from external IPs are rejected due to Host header validation.After: The configured
devserverHostis automatically included inallowedHosts, allowing access from the bound interface.TESTING INSTRUCTIONS
http://<your-machine-ip>:9001/)ADDITIONAL INFORMATION
🤖 Generated with Claude Code
CodeAnt-AI Description
Include configured dev server host in allowedHosts to permit external access
What Changed
Impact
✅ Access dev server from external IPs in Docker✅ Fewer blocked requests to the dev server✅ Easier local Docker development with custom dev server binding💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.