From 5e6e1340ad6a920ae3958f6591d71b1f41fe8c8d Mon Sep 17 00:00:00 2001 From: Viren070 Date: Wed, 26 Nov 2025 17:33:04 +0000 Subject: [PATCH] fix: add CORS middleware to static file route --- packages/server/src/app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/app.ts b/packages/server/src/app.ts index 16e9631a..f019bac2 100644 --- a/packages/server/src/app.ts +++ b/packages/server/src/app.ts @@ -178,7 +178,7 @@ app.get( } ); -app.get('/static/*any', (req, res, next) => { +app.get('/static/*any', corsMiddleware, (req, res, next) => { const filePath = path.resolve( staticRoot, req.path.replace(/^\/static\//, '')