mirror of https://github.com/Chocobozzz/PeerTube
Do not enable cors twice on /api in test mode
parent
12daa83784
commit
3ff5a19b4c
|
@ -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: '*',
|
||||
|
|
Loading…
Reference in New Issue