API/CDN: use send() rather than end() for cors preflights

This commit is contained in:
Rory& committed 2026-10-19 12:41:40 +02:00
1 parent 799b5d0a6f
commit 58b991df58
1 file changed
+1 -1
+1 -1
View File
@@ -33,7 +33,7 @@ export function CORS(req: Request, res: Response, next: NextFunction) {
);
if (req.method === "OPTIONS") {
res.status(204).end();
res.status(204).send();
return;
}
next();