We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need to strip out a token from a request that returns HTTP 401. That is currently not possible.
The text was updated successfully, but these errors were encountered:
So after looking at this... this is actually already part of cy.request and was documented here:
cy.request
https://docs.cypress.io/v1.0/docs/request#section-options
You just need to pass failOnStatus: false.
failOnStatus: false
Sorry, something went wrong.
Fixed in 0.18.1.
0.18.1
@Team - I am new to this so, i need the syntax as to how to pass the failOnStatus: false and where do i pass this
I found the solution myself -
cy.request({ method:'POST', url:'https://xxxx.in', body:{userName: "ghnfhg", password: "ghnfhg"}, failOnStatusCode: false })
It's in the documentation here https://docs.cypress.io/api/commands/request.html#Usage
it's also in many recipes you just need to search for cy.request
brian-mann
No branches or pull requests
I need to strip out a token from a request that returns HTTP 401. That is currently not possible.
The text was updated successfully, but these errors were encountered: