We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
root
1 parent 226f2b2 commit cf7020aCopy full SHA for cf7020a
README.md
@@ -111,6 +111,14 @@ This can also be a string accepted by the
111
112
Serve files relative to `path`.
113
114
+**Important:** The `root` option restricts the served path through string-level
115
+normalization only. It does not resolve symbolic links. If the served
116
+directory contains symlinks, they may resolve to files outside the root.
117
+
118
+Do not serve directories where untrusted users can create files or symlinks.
119
+If your application accepts file uploads or operates in a shared/multi-tenant
120
+environment, ensure the served directory is not writable by untrusted parties.
121
122
##### start
123
124
Byte offset at which the stream starts, defaults to 0. The start is inclusive,
0 commit comments