mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 13:12:19 +00:00
Merge remote-tracking branch 'origin/dev/admin-api'
This commit is contained in:
commit
3843a6e7b1
135 files changed
+8081
-48
No files matched your search
@@ -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