mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-28 23:00:36 +00:00
Merge remote-tracking branch 'origin/dev/admin-api'
This commit is contained in:
@@ -36,5 +36,9 @@ export function CORS(req: Request, res: Response, next: NextFunction) {
|
||||
req.header("Access-Control-Request-Methods") || "*",
|
||||
);
|
||||
|
||||
if (req.method === "OPTIONS") {
|
||||
res.status(204).end();
|
||||
return;
|
||||
}
|
||||
next();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user