bjowes / cypress-ntlm-auth

Windows authentication plugin for Cypress
MIT License
55 stars 10 forks source link

How can I set NODE_TLS_REJECT_UNAUTHORIZED=0 in Team City #154

Closed sfoa6558 closed 3 years ago

sfoa6558 commented 3 years ago

I use the ntlm-auth plugin with my cypress tests because they run in an internal application. I was getting cert errors, so I used set NODE_TLS_REJECT_UNAUTHORIZED=0. This worked fine locally, but when I set it in build steps in team city in powershell, my tests are getting the 504 gateway error again. See the code below

set NODE_TLS_REJECT_UNAUTHORIZED=0 set DEBUG=cypress:plugin:ntlm-auth

npm run ntlm-proxy

sfoa6558 commented 3 years ago

I set it in the env variables