I'm running an azure app service that includes both a front end (Vue) and a backend service (express). I was notified that the node_modules folder containing the packages used in the backend was still browsable. Considering the security implications of revealing which (versions of) packages are being used, I would like to prevent access to this folder.
The folder structure of the app looks something like this:
wwwroot
---node_modules
---src (contains built express api)
---static (contains built vue app)
---web.config
I'm using Azure pipelines to build and deploy the app. This pipeline includes node modules in the deployed .zip archive.
The app is deployed on a windows app service, using iisnode to run the app.
What steps can I take to shield the node_modules folder from browsing?