Skip to content
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

Disallow cross-origin redirect when host, port, path or sock is set. (#631) #1444

Closed
wants to merge 1 commit into from

Conversation

SLiV9
Copy link

@SLiV9 SLiV9 commented Feb 22, 2024

This fixes #631.

@aaugustin
Copy link
Member

I'm not going to fix this in the legacy implementation.

#1495 gets it right in the new asyncio implementation.

It's also a bit smarter e.g. it supports same-origin redirects when host and port are overridden, which is OK. This PR breaks that use case, which could be considered as a regression by users.

@aaugustin aaugustin closed this Sep 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Don't follow redirects when path, sock, host or port are overridden
2 participants