SamDecrock / node-http-ntlm

Node.js module to authenticate using HTTP NTLM
MIT License
192 stars 89 forks source link

401 on browser but 200 on node #92

Closed aprilmintacpineda closed 3 years ago

aprilmintacpineda commented 3 years ago

I'm running this request:

httpntlm.post(
  {
    url,
    username,
    password,
    domain,
    workstation: '',
    headers: {
      'Content-Type': 'text/xml',
      SOAPAction
    },
    body: xml
  },
  (error, response) => {
    if (error) reject(error);
    else resolve(response);
  }
);

On the browser I get 401 response status. When I run it on nodejs, I get 200 response status.

SamDecrock commented 3 years ago

It has not been tested in the browser. TBH, most browsers support ntlm authentication by default