-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
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
Authorization header missing #83
Labels
Type: enhancement
New feature or request.
Comments
@nfelger please provide a reproducible repository if it is possible |
derevnjuk
added
Type: question
Further information is requested
and removed
Type: bug
Something isn't working
labels
Jan 17, 2023
@nfelger seems Cypress automatically sends this header via some kind of proxy, outside of the browser. That is why you are not able to see this header either in the devtools or the resulting HAR. Perhaps, it can be solved by #59 intercepting the requests made by cy.intercept('/', (req: CyHttpMessages.IncomingHttpRequest) => {
console.log('authorization' in req.headers);
});
cy.visit('/', {
auth: { username: 'wile', password: 'coyote' }
}); |
derevnjuk
added
Type: enhancement
New feature or request.
and removed
Type: question
Further information is requested
labels
Jan 17, 2023
derevnjuk
added a commit
that referenced
this issue
Feb 7, 2023
derevnjuk
added a commit
that referenced
this issue
Feb 7, 2023
derevnjuk
added a commit
that referenced
this issue
Feb 7, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I'm trying to generate a har file for a site that is protected by HTTP Basic Auth. However, the HAR file that is generated lacks the Authorization header, so when I replay it, I get a 401 error.
My Cypress test file:
I run it using:
The result I get looks like this:
As you can see: no
Authorization
header. I had a look at thecypress-har-generator
but couldn't find any header stripping. Any ideas what might be going on here?The text was updated successfully, but these errors were encountered: