Fix #25: Backend error #26

Merged
Syndria98 merged 1 commits from ai/issue-25 into master 2026-10-14 16:25:36 +00:00
Showing only changes of commit 9d93e6f79b - Show all commits

View File

@@ -62,7 +62,7 @@ const appCors = cors({
credentials: true, // if using cookies/auth
});
app.use((req, res, next) => {
if (foundryCorsPaths.some((path) => req.path === path || req.path.startsWith(`${path}/`))) return next();
if (openCorsPaths.some((path) => req.path === path || req.path.startsWith(`${path}/`))) return next();
appCors(req, res, next);
});