Fix cors on sha segment endpoint

pull/3377/head
Chocobozzz 2020-11-27 17:09:36 +01:00
parent adf7a7ccb9
commit 4a7f90248b
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 0 deletions

View 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
)