mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: add CORS middleware to static file route
This commit is contained in:
@@ -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\//, '')
|
||||
|
||||
Reference in New Issue
Block a user