Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

IIS Express + SSL certificate for localhost + HMR #482

Closed

Description

Hi guys,

So i have an ASP.NET Core app that is running on 'https://localhost:44328/home' that is currently specified in launchSettings.json.

{
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "https://localhost:44328/",
      "sslPort": 44328
    }
    ....
}

What i currently have:

           app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions
                {
                    HotModuleReplacement = true,                
                    ConfigFile = "config/webpack.config.js"
                });

My problem:

Is there a way to specify that you want to get the hmr server to run over https?

image

Activity

  1. SteveSandersonMS commented on Dec 1, 2016

    @SteveSandersonMS
    Member

    As it happens, this was fixed yesterday :) The latest package (SpaServices 1.1.0-beta-000002) proxies the /__webpack_hmr requests through the same connection that your browser is making to your ASP.NET site, so it works just the same whether you're using HTTP or HTTPS.

    Note that to update to 1.1.0-beta-000002, you will also need to update to ASP.NET Core 1.1.0.

  2. SteveSandersonMS commented on Dec 8, 2016

    @SteveSandersonMS
    Member

    What version of aspnet-webpack are you on? You need 1.0.25 or later to get this feature. Sorry I didn't mention that in my previous comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy