You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I need to authenticate either with Basic Auth or NTLM, because I don't know if server will be using Basic or NTLM or both. So I just set the exch.XHRApi property.
When only NTML is enabled on the server it's working fine.
When NTLM + Basic Auth is enabled it's also working fine.
But when only Basic Auth is enabled I get: TypeError: Cannot set property 'getAllResponseHeaders' of undefined.
Is there some workaround for this?
The text was updated successfully, but these errors were encountered:
Authentication has to be configured per server, means you can call with ntlm or basic auth support but not both. there is a way to figure this out. You can call EWS with random data, it will come back with response header with what type of authentication is supported, look for WWW-Authenticate header, if it contains Basic word, you do not need to wire up any authentication.
once i publish update to Autodiscover, you can then use correct way to determine authentication.
You may also try ews-javascript-api@next npm package with ews-javascript-api-auth package, which simplifies authentication.
Hi, I need to authenticate either with Basic Auth or NTLM, because I don't know if server will be using Basic or NTLM or both. So I just set the exch.XHRApi property.
When only NTML is enabled on the server it's working fine.
When NTLM + Basic Auth is enabled it's also working fine.
But when only Basic Auth is enabled I get: TypeError: Cannot set property 'getAllResponseHeaders' of undefined.
Is there some workaround for this?
The text was updated successfully, but these errors were encountered: