mirror of
https://github.com/spacebarchat/server.git
synced 2026-11-04 11:18:37 +00:00
API/CDN: use send() rather than end() for cors preflights
This commit is contained in:
1 parent
799b5d0a6f
commit
58b991df58
1 file changed
+1
-1
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user