title: IF-ELSE For IP Bindation
body: <p>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.</p>
  <pre><code>.EnableSwagger(c =&gt;
                  {
                      c.RootUrl(req =&gt;
                      {
                          var url = &quot;https://&quot; + req.RequestUri.Authority + System.Web.VirtualPathUtility.ToAbsolute(&quot;~&quot;);
  
                          return url;
                      });
  </code></pre>