-
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
XForwardedStrict fails when NOT behind a proxy #52
Comments
Hi, I'm GitMate.io! It seems you've just enabled the issue triaging. I'm just scraping all issues from your repository and will give you some more information about this in a few minutes or so. Because of the rate limit we can't scrape all information (including all comments and authors) right now - our system is already set up to scrape this in the next days over which the predictions will become more precise every day. If you want me to use a different account for triaging your issues, simply create one and log in with it. Sit tight! |
|
Andrew: Thanks for your speedy response (and the great library). I disagree with the premise that it is a deployment configuration issue as I want to run the same code in development (desktop without a proxy) and deployment (behind a proxy). In production environments, I frequently find the need to access the service directly via a curl command (testing new deploys, monitoring, etc.)--though I could add an X-Forwarded-For header to the curl command. I put together a pull request (including test), with the understanding that your use case is different than mine. Regards, Ray |
Say again, if you want to pass over the strict check -- use |
But I want the ability to check against the trusted list when I am behind
the proxy.
…On Thu, Oct 11, 2018 at 12:08 PM Andrew Svetlov ***@***.***> wrote:
Say again, if you want to pass over the strict check -- use
XForwardedRelaxed.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#52 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABj61EcFq2xj9YZ1UMctbtMGmGe3p7yCks5uj2zsgaJpZM4XXyn4>
.
--
Raymond Cote, President
voice: +1.603.924.6079 email: rgacote@AppropriateSolutions.com skype:
ray.cote
Schedule a meeting: https://calendly.com/ray_cote/60min/
|
I agree we have a different understanding of the library usage. |
XForwardedStrict always fails when not running behind a proxy.
I believe the XForwardedStrict middleware should immediately return await handler(request) if the result of self.get_forwarded_for(headers) is an empty list (although I might be missing some additional intent).
A test case without an X-Forwarded-For header is absent, I provide one below:
The text was updated successfully, but these errors were encountered: