I want to restrict the HTTP request based on the HTTP request protocol lower than 2.0 in ASP.NET Core. Can we add any policy in the startup.cs file that will restrict the HTTP request based on the HTTP protocol?
Thanks
I want to restrict the HTTP request based on the HTTP request protocol lower than 2.0 in ASP.NET Core. Can we add any policy in the startup.cs file that will restrict the HTTP request based on the HTTP protocol?
Thanks
You can use middleware to get the protocol of the current request, and then judge whether it is lower than
HTTP/2. For example: