I have created a web API with Windows authentication enabled (using IIS as well). The issue arises when my client attempts to send an AJAX request to the web API, resulting in a 401 unauthorized response.
Upon further investigation, it appears that the problem lies in the lack of negotiate headers being sent in the request. Unfortunately, I have been unable to find a method for including negotiate headers in the request to make Windows authentication function properly.
I have searched extensively and have not found any resources on how to implement negotiate headers in a JavaScript request. It would greatly benefit me to grasp whether this is the root cause of the problem.