Authenticate every Web API call using jQuery AJAX in ASP.Net

Last Reply 3 days ago By dharmendr

Posted 4 days ago

how to authenticate every web api request with ajax call using jquery.

Please provide any solution


Posted 3 days ago

Then add anoter parameter as AuthenticationKey to the Web API Method and have to pass AuthenticationKey from the Ajax request.

Inside the Web API Method you need to verify the AuthenticationKey as per your need and validate.

If AuthenticationKey is validated then do the rest of process.