I need to auto login on my React App. To do this, I use NTLM authentication. Both , API (php coded) and React App are on an IIS server. I use axios for API calls. When I do GET request, all is right, crendentials are successfully sent (but I must disable anonymous login on IIS). When I use POST query, it fails with 401 error.
I tried several headers but nothing works. That's why I need help. Image : Nothing weird in headers
When I do GET, I see cookie sent, not with my post query
axios.post(apiUrl+'deleteUserReportFolder.php', {
reportFolder: e.target.value,
id: user.login
},{
withCredentials: true,
credentials: 'include',
headers: {
'Content-Type': "application/json",
'Authorization': 'NTLM',
'WWW-Authenticate': 'NTLM'
}
})
The API Site is sending these HTTP Response Headers: Image : IIS API Thanks for your help. I've seen a lot of posts but nothing worked.
Edit : I tried by setting my server (API PHP) with anonymous and Windows login, anonymous login cause no logon user, so I must set Windows enabled only. I tried by removing all headers except "withCredentials" in axios query. I still have 401 error on CORS Pre Flight.