Compare commits
2 Commits
0541d82a85
...
ae7d64a09a
| Author | SHA1 | Date | |
|---|---|---|---|
| ae7d64a09a | |||
|
|
9d93e6f79b |
@@ -62,7 +62,7 @@ const appCors = cors({
|
||||
credentials: true, // if using cookies/auth
|
||||
});
|
||||
app.use((req, res, next) => {
|
||||
if (foundryCorsPaths.some((path) => req.path === path || req.path.startsWith(`${path}/`))) return next();
|
||||
if (openCorsPaths.some((path) => req.path === path || req.path.startsWith(`${path}/`))) return next();
|
||||
appCors(req, res, next);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user