From d545427c05d320769dae3b8b4a1c1199d7db97cf Mon Sep 17 00:00:00 2001 From: GrygrFlzr Date: Wed, 7 Jul 2021 09:31:18 +0700 Subject: [PATCH] chore: document new default Vite server.fs.strict behavior --- documentation/faq/90-fs-strict.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 documentation/faq/90-fs-strict.md diff --git a/documentation/faq/90-fs-strict.md b/documentation/faq/90-fs-strict.md new file mode 100644 index 000000000000..26f0f19803be --- /dev/null +++ b/documentation/faq/90-fs-strict.md @@ -0,0 +1,10 @@ +--- +question: "Internal server error: The request url [...] is outside of Vite serving allow list" +--- + +For security reasons, Vite has been configured to only allow filesystem access when the request file fulfils one of these requirements: +- Within workspace root +- Within the listed `server.fs.allow` exceptions +- Part of the dependency graph of your application code + +Refer to Vite documentation for [`server.fs.allow`](https://vitejs.dev/config/#server-fs-allow) for configuration and more details.