DEV Community

John Peters
John Peters

Posted on • Updated on

Cypress and 401 Not Authorized Errors

Scenario

You have a configured command that opens Cypress, for us it was: npm run cypress. You have already written the test to go to a specific port, in our case it was 8080. As the site opens and you click on back-end related buttons, you see that a 401 not authorized message shows on any attempt to reach the back-end.

Solution
Install and Configure this NTLM package.

Apparently, Windows Authentication has some special concerns. This addresses that issue so you can test at will.

JWP2020

Top comments (0)