title: HMR loop reboot with .Net Core 2.1.2 + Angular 6 when Https is enabled
body: <p>To enable https on .Net Core 2.1.2, I added:</p>
  
  <pre><code>        //https
          app.UseHttpsRedirection();
          app.UseHsts();
  </code></pre>
  
  <p>Then I enabled SSL option in the properties of my projet in the tab "debug".</p>
  
  <p>The api works correctly.</p>
  
  <p>For Angular 6, in angular.json, I modified the npm run start command with:</p>
  
  <pre><code> ng serve --ssl --ssl-key certificate.key --ssl-cert certificate.crt --proxy-config proxy.config.json
  </code></pre>
  
  <p>And I updated the proxy.config.json by adding the new https link to my api.</p>
  
  <pre><code>{
    "/api": {
      "target": "https://localhost:44313/",
      "secure": false
    }
  }
  </code></pre>
  
  <p>Note: it s important to let secure to false, because I didnt generate the ssl certificate in localhost. When you put the option to true, Angular wont accept unsafe ssl call.</p>
  
  <p>When I load the angular App, the site load correctly then I see in the console [WDS] Disconnected and then the website reboot, sometimes one time, sometime many times.</p>
  
  <p>How to make HMR works without loop reboot for .Net Core 2.1.2 with Angular 6 when Https is enabled?</p>