-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
cy.visit does not set Referer header #16975
Comments
Still not working with version 8.1.0 :-(
|
hi @beezital we ran into this issue recently and came up with a workaround. hope this helps while we wait on a fix
|
Dear @nghedia Still expecting a solution using the cy.visit() approach... |
Facing the same issue using Cypress 8.3.0 |
Same issue in Cypress 10.0.0 |
Same issue in Cypress 12.5.1 |
hi @beezital
This is because of a fix with hardcoded value |
@dravnjakunite, thanks for posting a workaround! That's very useful. I replicated this issue and will forward this ticket to the appropriate team. They will evaluate the priority of this ticket and consider their capacity to pick it up. Please note that this does not guarantee that this issue will be resolved. |
Empty referer is leading to CSRF problems in a Django page running with HTTPS. See cypress-io#16975 and https://code.djangoproject.com/ticket/16870
Current behavior
cy.visit
sets the headers > Referer to the url instead of using the value provided in the optionsDesired behavior
Test code to reproduce
Versions
7.5.0
The text was updated successfully, but these errors were encountered: