-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make allowedHosts accept localhost subdomains by default
Use Case: Some web applications will serve multiple domains and render different content depending on the incoming header. In a development environment, these applications may use localhost subdomains to simulate these alternative domains. To reduce overall configuration, make the webpack-dev-server allow "localhost" as well as its subdomains. As "localhost" is already considered safe and convenient, the same can be said of its subdomains. Available Workaround: Without this feature, developing a multi-domain application requires configuring webpack-dev-server with: allowedHosts: ".localhost"
- Loading branch information
Showing
4 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters