Authentication failed because the remote party has closed the transport stream in localhost when using https
First of all, I use .net core 2.1 to develop a single page application(angular 5). Following the link
https://www.hanselman.com/blog/DevelopingLocallyWithASPNETCoreUnderHTTPSSSLAndSelfSignedCerts.aspx