fix: add CORS middleware to static file route

This commit is contained in:
Viren070
2025-11-26 17:33:04 +00:00
parent 174e813127
commit 5e6e1340ad
+1 -1
View File
@@ -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\//, '')