I have a WebApi that uses NTLM authentication and I am trying to write a simple React UI to get data from the API but getting 401.
axios.get('url').then(response => console.log(response));
How can I pass my Windows credentials along with the get request?
Thanks
Axios provides a withCredentials property on request. This is false by default, set it to true and you should be good to go.
Axios.get('url', {
withCredentials: true } )
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With