Skip to content

Commit 6130236

Browse files
no message
1 parent 1408526 commit 6130236

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

frontend/vite.config.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,15 @@ export default defineConfig(({ command, mode }) => {
100100
],
101101
},
102102
fs: {
103-
// Security mitigation for CVE-2024-45811: server.fs.deny bypass on Windows alternate paths
104-
deny: ['.env', '.env.*', '*.pem', '.key', '.git', 'node_modules', '/'],
103+
deny: [
104+
'**/.env',
105+
'**/.env.*',
106+
'**/*.pem',
107+
'**/*.key',
108+
'**/.git/**',
109+
'**/node_modules/**',
110+
'/',
111+
],
105112
allow: [
106113
fileURLToPath(new URL('./src', import.meta.url)),
107114
fileURLToPath(new URL('./public', import.meta.url)),

0 commit comments

Comments
 (0)