diff options
Diffstat (limited to 'server.ts')
-rw-r--r-- | server.ts | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: '*', |