Skip to content

Commit

Permalink
Fix cors on sha segment endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Nov 27, 2020
1 parent adf7a7c commit 4a7f902
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/controllers/live.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import * as cors from 'cors'
import * as express from 'express'
import { mapToJSON } from '@server/helpers/core-utils'
import { LiveManager } from '@server/lib/live-manager'

const liveRouter = express.Router()

liveRouter.use('/segments-sha256/:videoUUID',
cors(),
getSegmentsSha256
)

Expand Down

0 comments on commit 4a7f902

Please sign in to comment.