title: angular app works on http://localhost:4200, but I want https://localhost:44325
body: <p>I have an ASP.NET Core 2.1 Web Application set up with an Angular front-end (using VS default setup) that was configured to run over an HTTPS connection.</p>
  
  <p>I ran the project initially, and it worked fine on <a href="https://localhost:44325" rel="nofollow noreferrer">https://localhost:44325</a>.
  However, now, after editing my the .html and .ts files,the changes do not carry over. But when I run the server on <a href="http://localhost:4200" rel="nofollow noreferrer">http://localhost:4200</a>, the changes carry over.</p>
  
  <p>I want the changes to carry over on <a href="https://localhost:44325" rel="nofollow noreferrer">https://localhost:44325</a> since that is the port that my browser opens to when I run the application. How do I change this? Is it an npm issue? Is it in my angular app? Is it in Startup.cs?</p>
  
  <p><strong>Startup.cs</strong></p>
  
  <pre><code>...
  public void ConfigureDevelopmentServices(IServiceCollection services)
  {
      ...
      app.UseMvc(routes =&gt;
      {
          routes.MapSpaFallbackRoute(
              name: "spa-fallback",
              defaults: new { controller = "Fallback", action = "Index" }
          );
      });
      ...
  }
  ...
  </code></pre>
  
  <p><br><br>
  <strong>environment.ts</strong></p>
  
  <pre><code>export const environment = {
    production: false,
    apiUrl: 'http://localhost:5000/api/'
  };
  </code></pre>