diff options
-rw-r--r-- | server/controllers/live.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/controllers/live.ts b/server/controllers/live.ts index fa4c2cc1a..5feadae72 100644 --- a/server/controllers/live.ts +++ b/server/controllers/live.ts | |||
@@ -1,3 +1,4 @@ | |||
1 | import * as cors from 'cors' | ||
1 | import * as express from 'express' | 2 | import * as express from 'express' |
2 | import { mapToJSON } from '@server/helpers/core-utils' | 3 | import { mapToJSON } from '@server/helpers/core-utils' |
3 | import { LiveManager } from '@server/lib/live-manager' | 4 | import { LiveManager } from '@server/lib/live-manager' |
@@ -5,6 +6,7 @@ import { LiveManager } from '@server/lib/live-manager' | |||
5 | const liveRouter = express.Router() | 6 | const liveRouter = express.Router() |
6 | 7 | ||
7 | liveRouter.use('/segments-sha256/:videoUUID', | 8 | liveRouter.use('/segments-sha256/:videoUUID', |
9 | cors(), | ||
8 | getSegmentsSha256 | 10 | getSegmentsSha256 |
9 | ) | 11 | ) |
10 | 12 | ||