From 58b991df5830ec9b17976624d605c764fc8b42f3 Mon Sep 17 00:00:00 2001 From: Rory& Date: Mon, 19 Oct 2026 12:41:40 +0200 Subject: [PATCH] API/CDN: use send() rather than end() for cors preflights --- src/api/middlewares/CORS.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/middlewares/CORS.ts b/src/api/middlewares/CORS.ts index 7e2a38733..1dcce0d69 100644 --- a/src/api/middlewares/CORS.ts +++ b/src/api/middlewares/CORS.ts @@ -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();