mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-23 06:32:34 +00:00
Local changes
This commit is contained in:
1 parent
a632666203
commit
abb1b570a4
73 files changed
+2067
-64
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