Fix issue #25: Backend error

This commit is contained in:
Gitea OpenCode Agent
2026-10-14 16:24:43 +00:00
parent 0541d82a85
commit 9d93e6f79b

View File

@@ -62,7 +62,7 @@ const appCors = cors({
credentials: true, // if using cookies/auth credentials: true, // if using cookies/auth
}); });
app.use((req, res, next) => { 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); appCors(req, res, next);
}); });