aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--server.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/server.ts b/server.ts
index 5511c5435..fffb8038f 100644
--- a/server.ts
+++ b/server.ts
@@ -90,7 +90,8 @@ if (isTestInstance()) {
90 // These routes have already cors 90 // These routes have already cors
91 if ( 91 if (
92 req.path.indexOf(STATIC_PATHS.TORRENTS) === -1 && 92 req.path.indexOf(STATIC_PATHS.TORRENTS) === -1 &&
93 req.path.indexOf(STATIC_PATHS.WEBSEED) === -1 93 req.path.indexOf(STATIC_PATHS.WEBSEED) === -1 &&
94 req.path.startsWith('/api/') === false
94 ) { 95 ) {
95 return (cors({ 96 return (cors({
96 origin: '*', 97 origin: '*',