Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: make allowedHosts accept localhost subdomains by default #4357

Merged
merged 2 commits into from Sep 5, 2022
Merged

feat: make allowedHosts accept localhost subdomains by default #4357

merged 2 commits into from Sep 5, 2022

Commits on Mar 27, 2022

  1. 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"
    jdufresne committed Mar 27, 2022
    Copy the full SHA
    f51ff8c View commit details
    Browse the repository at this point in the history

Commits on Sep 2, 2022

  1. Copy the full SHA
    8b52b2f View commit details
    Browse the repository at this point in the history