Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY on dotnet core 3.1 react project

I started a new dotnet core with react project on my Windows 8.1 machine.

dotnet new react my-project

When I started debugging in chrome at https://localhost:5001/, I got the following error

ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY.

Where should I look into?

like image 281
Maciek Avatar asked Oct 12 '25 08:10

Maciek


1 Answers

You can configure Kestrel server to serve Http1. Please follow the following instruction to solve the problem -

  1. Go to your project appsettings.json file.

  2. Add below code under "AllowedHosts": "*" line

    "Kestrel": { "EndpointDefaults": { "Protocols": "Http1" } }

Your default appsettings.json file will look like this -

{
   "Logging": {
      "LogLevel": {
         "Default": "Information",
         "Microsoft": "Warning",
         "Microsoft.Hosting.Lifetime": "Information"
      }
   },
   "AllowedHosts": "*",
   "Kestrel": {
      "EndpointDefaults": {
         "Protocols": "Http1"
      }
   }
}

Hope it will solve your problem.

like image 81
Shalim Ahmed Avatar answered Oct 13 '25 20:10

Shalim Ahmed



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!