Restrict Kestrel server to HTTP/1 protocol in config

Added "Kestrel" section to appsettings.json to set endpoint default protocol to HTTP/1, preventing use of HTTP/2 or other protocols.
This commit is contained in:
2026-03-16 09:44:41 +01:00
parent cfc74276ae
commit 62dd45dd08

View File

@@ -5,5 +5,10 @@
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
"AllowedHosts": "*",
"Kestrel": {
"EndpointDefaults": {
"Protocols": "Http1"
}
}
}