title: webpack-dev-server develop on https
body: <p>My .NET Core API is exposed over https. </p>
  
  <p>I want to do request to API from my React app running on webpack-dev-server. But webpack-dev-server running on http by default and CORS block any requests.</p>
  
  <p>I reconfigure webpack to force use https (with my *.pfx certificate <a href="https://github.com/webpack/webpack-dev-server/tree/master/examples/https" rel="noreferrer">example</a>),
  but then i have 'private connection error' in browser at every refresh (minor problem) and auto-refreshing stops working.</p>
  
  <p>console errors:</p>
  
  <pre><code>&gt; [HMR] Waiting for update signal from WDS...
  &gt; app.js:4049 WebSocket connection to 'wss://localhost:8080/sockjs-node/826/sy0x5mcu/websocket' failed: Error in connection establishment: net::ERR_INSECURE_RESPONSE
  &gt; [WDS] Hot Module Replacement enabled.
  </code></pre>
  
  <p>I think that websockets of webpack-dev-server can not establish connection because of https url. But i do not know how to fix this.</p>