aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-27 17:09:36 +0100
committerChocobozzz <me@florianbigard.com>2020-11-27 17:09:36 +0100
commit4a7f90248b546803cab07188521ac97e175b31e6 (patch)
tree0f3d01a49c7803562ebf9cbde76cc49adfd93cb6
parentadf7a7ccb924a24ab2f7ee618cced0a82860421a (diff)
downloadPeerTube-4a7f90248b546803cab07188521ac97e175b31e6.tar.gz
PeerTube-4a7f90248b546803cab07188521ac97e175b31e6.tar.zst
PeerTube-4a7f90248b546803cab07188521ac97e175b31e6.zip
Fix cors on sha segment endpoint
-rw-r--r--server/controllers/live.ts2
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 @@
1import * as cors from 'cors'
1import * as express from 'express' 2import * as express from 'express'
2import { mapToJSON } from '@server/helpers/core-utils' 3import { mapToJSON } from '@server/helpers/core-utils'
3import { LiveManager } from '@server/lib/live-manager' 4import { LiveManager } from '@server/lib/live-manager'
@@ -5,6 +6,7 @@ import { LiveManager } from '@server/lib/live-manager'
5const liveRouter = express.Router() 6const liveRouter = express.Router()
6 7
7liveRouter.use('/segments-sha256/:videoUUID', 8liveRouter.use('/segments-sha256/:videoUUID',
9 cors(),
8 getSegmentsSha256 10 getSegmentsSha256
9) 11)
10 12