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

Attempt redirects based on Referer or Referrer header before other methods #9

Open
TangentFoxy opened this issue Oct 17, 2016 · 2 comments

Comments

@TangentFoxy
Copy link
Member

TangentFoxy commented Oct 17, 2016

Tl;dr: I have implemented a better redirect system already, but one based on headers that browsers are sending already by default would be a much better solution.

@TangentFoxy TangentFoxy changed the title Do redirects first based on a referer or referrer header of same domain as being hosted from, THEN try to use session.redirect Attempt redirects based on Referer or Referrer header before other methods Feb 23, 2018
@TangentFoxy
Copy link
Member Author

Referer: something

  • Only trust same domain/proto
  • Or paths

@TangentFoxy
Copy link
Member Author

strip anything like chars://something.with.dots if at front of Referer header

  • I forgot basic auth and ports..

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

No branches or pull requests

1 participant