can add images to forum posts and comments
This commit is contained in:
@@ -131,8 +131,12 @@ app.use(
|
||||
})
|
||||
);
|
||||
|
||||
// Serve static files from uploads directory
|
||||
app.use("/uploads", express.static(path.join(__dirname, "uploads")));
|
||||
// Serve static files from uploads directory with CORS headers
|
||||
app.use(
|
||||
"/uploads",
|
||||
helmet.crossOriginResourcePolicy({ policy: "cross-origin" }),
|
||||
express.static(path.join(__dirname, "uploads"))
|
||||
);
|
||||
|
||||
// Public routes (no alpha access required)
|
||||
app.use("/api/alpha", alphaRoutes);
|
||||
|
||||
Reference in New Issue
Block a user