'IF-ELSE For IP Bindation
I want that when someone trying to open my application it will auto redirect to https but for some specific ip and localhost use i want to the link open with http.
.EnableSwagger(c =>
{
c.RootUrl(req =>
{
var url = "https://" + req.RequestUri.Authority + System.Web.VirtualPathUtility.ToAbsolute("~");
return url;
});
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
