Web API has been created in .Net with Windows Authentication. When am invoking the API in React APP getting 401 Unauthorized. Web API Works fine in the browser with windows authentication.
axios.get('http://.../.../user/Data')
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});```
$.ajaxis essentially the same as axios - both make AJAX calls. React runs in the browser; the issue is when you make an AJAX call to the server. You could replicate this with just axios (no React).