]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/live.ts
hls-plugin: destroy hls upon third err
[github/Chocobozzz/PeerTube.git] / server / controllers / live.ts
index fa4c2cc1a300c5e9b3045a145b8863fac071d972..5feadae72ae5953b08ce3f5a3fcffb1ca69248b5 100644 (file)
@@ -1,3 +1,4 @@
+import * as cors from 'cors'
 import * as express from 'express'
 import { mapToJSON } from '@server/helpers/core-utils'
 import { LiveManager } from '@server/lib/live-manager'
@@ -5,6 +6,7 @@ import { LiveManager } from '@server/lib/live-manager'
 const liveRouter = express.Router()
 
 liveRouter.use('/segments-sha256/:videoUUID',
+  cors(),
   getSegmentsSha256
 )