bjowes / cypress-ntlm-auth

Windows authentication plugin for Cypress
MIT License
54 stars 9 forks source link

400: Bad Request on cy.visit() #238

Closed hafizjh closed 10 months ago

hafizjh commented 1 year ago

Hi @bjowes,

Thanks for this plugin :)

I would like to know if you are able to help me in this?

I received 400 Bad Request when I run this on server which is behind proxy. I started working on this locally (which also runs behind VPN and proxy) but I didnt have this issue. The problem only happened when I run the script on my server side. I provide you the ntlm logs. Please have a look below.

Just FYI, the site is using http protocol, so I dont think the certificates is needed in here.

image

bjowes commented 1 year ago

Hi,

First, the cert warnings in your screenshot are related to a request to registry.npmjs.org, which looks like something you may get when launching cypress-ntlm open. (It will check for new versions). You should use cypress-ntlm run for CI scenarios.

Second, I don't see anything about the 400 Bad request in your screenshot. Please provide better logs.

Try to describe the network scenario. Is the target site on a corporate network or on the internet? Is your local machine on the same network as the site? Is the server on the same network as the site?

bjowes commented 10 months ago

Closed due to lack of feedback