Repository navigation
Add HTTPS detection via X-Forwarded-Proto - #78
mattrobenolt merged 1 commit into
Conversation
|
I don't see a security issue with just trusting the header, in this case. Since we don't actually use it to do anything that could harm the user, if somebody says they're Also, I don't feel that this behavior should happen from within raven. I feel like it should happen upstream, either in the web server, or within a middleware. Or do people not do that for node stuff? |
|
Also note, it's common to use |
|
I was mentioning the spoof issue regarding The reason I've added support for this particular header (and perhaps the missing There are certainly several ways of working around this, but not without refactoring some code. What do you suggest? |
|
I'm ok with this for now. I don't have an answer for a better solution at the moment since I don't have much experience with any of these frameworks, so I'm open to ideas for improvements. :) |
Add HTTPS detection via X-Forwarded-Proto
|
@mattrobenolt thanks, appreciated. What do you think about adding framework-specific parse methods, such as |
|
I'd rather just feature detect and do it automatically. For example, attempt to use information that libraries shove onto |
|
Working on it for Koa (should match an express request too). |
Similarly to
X-Forwarded-For,X-Forwarded-Protoshould also be taken into account when parsing the request object. One thing that stands out is that there is no whitelist support for filtering out spoofed values forX-Forwarded-For. Would you be open to integration with a more robust implementation such as forwarded-for?