I have to use HTTPS (with localhost) for server authentication using: ``` // Require SSL services.Configure<MvcOptions>(options => { options.Filters.Add(new RequireHttpsAttribute()); }); ``` I'm using the UseWebpackDevMiddleware as: ``` app.UseWebpackDevMiddleware(new WebpackDevMiddlewareOptions { HotModuleReplacement = true }); ``` When I open browser, I'm getting the following error: > Mixed Content: The page at 'https://localhost:44359/home' was loaded over HTTPS, but requested an insecure EventSource endpoint 'http://localhost:50286/__webpack_hmr'. This request has been blocked; the content must be served over HTTPS. How could I instruct WebpackDevMiddleware to use HTTPS and not HTTP protocol? Is there a parameter that I should use?
I have to use HTTPS (with localhost) for server authentication using:
I'm using the UseWebpackDevMiddleware as:
When I open browser, I'm getting the following error:
How could I instruct WebpackDevMiddleware to use HTTPS and not HTTP protocol? Is there a parameter that I should use?