]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server.ts
(doc/faq) add precision regarding code forge
[github/Chocobozzz/PeerTube.git] / server.ts
index 5511c5435856fec72698f20295fa35e754d44267..fffb8038f3475a0a1ff6d55f2bd1b3b8d82831de 100644 (file)
--- a/server.ts
+++ b/server.ts
@@ -90,7 +90,8 @@ if (isTestInstance()) {
     // These routes have already cors
     if (
       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: '*',