I am developing a web app, and for security reasons I want node to only be able to access a specific folder(and sub-folders). Is this possible?
I am developing a web app, and for security reasons I want node to only be able to access a specific folder(and sub-folders). Is this possible?
Node needs to be able to read your code, obviously, but it you are talking about write access, then yes, you can do that using standard OS permissions by restricting the user the node app is running as to read-only. ie have those files the node app shouldn't be able to right to owned by another user.