I have this configuration for SPA in .NET Core web server (Startup.cs
)
public void Configure(IApplicationBuilder app, IWebHostEnvironment env) {
// ...
app.UseHttpsRedirection();
// ...
}
I have enabled the HTTPS configuration for the debugging.
If I remove the app.UseHttpsRedirection();
and disabled the https
debugging, it works. But if I enable the `HTTPS this error shows up when loading the SPA bundle:
GET https://localhost:44355/static/js/0.chunk.js net::ERR_HTTP2_PROTOCOL_ERROR 200
It was fine before, I do not know what the cause of this. I suppose the application is requesting the bundle over HTTP and not
HTTPS.
I tried to uninstall and reinstall the IIS Express
, but the problem still persists. I do not know what the cause of this, please help.