ActivityPub-federated video streaming platform using P2P directly in your web browser
Do not enable cors twice on /api in test mode
Chocobozzz3ff5a19b4c98
diff --git a/server.ts b/server.tsindex 5511c54358..fffb8038f3 100644--- a/server.ts+++ b/server.ts@@ -90,7 +90,8 @@ if (isTestInstance()) {// These routes have already corsif (req.path.indexOf(STATIC_PATHS.TORRENTS) === -1 &&- req.path.indexOf(STATIC_PATHS.WEBSEED) === -1+ req.path.indexOf(STATIC_PATHS.WEBSEED) === -1 &&+ req.path.startsWith('/api/') === false) {return (cors({origin: '*',