In this blog, we will see how to enable a Web Api service to server over HTTPS only and not on HTTP. If you are new to Web API, then read my earlier blogs on ASP.Net Web API here. As you know ASP.Net Web API runs over HTTP protocol. Suppose you want to serve your Web API to be accessible only over secure HTTP i.e. HTTPS and not over HTTP. To enable HTTPS for ASP.Net Web API, add a class in your
This post first appeared on SharePointCafe.Net - A Technical Blog On SharePoint, ASP.Net, Cloud Computing, please read the originial post: here