Add confine option that confines file responses#47
Conversation
|
The I plan to amend the PR with this feature. |
eed1994 to
6468c7e
Compare
|
Rebased patch and split into sub patches, renaming the option to I decided not to include any I plan to merge this soon unless there are any objections or concerns? |
|
I don't get it. I understand how this can be useful in a directory handler where you are serving content based on the request, but is there a real use case for file when you specify the file you want? Also, directory already have this: https://github.com/hapijs/inert/blob/master/lib/directory.js#L81-L83 Seems like an odd feature for the file handler. I can see how it might be useful for the |
|
Yeah, it is primarily targeted at The other target is the I am definitely open to change the defaults for the |
|
Ok. We can give this a try. See how many people report issues. But need to apply to directory. |
283ed23 to
41732aa
Compare
|
@hueniverse / @kanongil - I am curious why this PR hasn't been merged in and pushed yet? This seems to resolve this particular issue, and more importantly is solves a very real security issue. Can you guys provide us with an update on this PR? |
41732aa to
98b502c
Compare
98b502c to
7251728
Compare
|
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions. |
The is a breaking change, since I decided to use
trueas the default value.