Add Basic Authentication to ajax request
In this post, I am going to explain how to pass the user credentials to a service that is enabled with basic authentication. In demo example, I have used the ajax jQuery request to connect to a service that validates user based on the credentials that we send in authentication header, if user successfully validated then it will return the data in JSON format and that data will get displayed on webpage in tabular format. If you are interested in getting to know how to enable basic authentication in MVC application, you can refer my this blog. Lets get started Step 1 CDN for jQuery , jQuery min Step 2 – HTML Code – in this example < table id ="tblProcess"> < tr > < th > Process I...