diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-27 17:09:36 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-11-27 17:09:36 +0100 |
commit | 4a7f90248b546803cab07188521ac97e175b31e6 (patch) | |
tree | 0f3d01a49c7803562ebf9cbde76cc49adfd93cb6 /server/controllers | |
parent | adf7a7ccb924a24ab2f7ee618cced0a82860421a (diff) | |
download | PeerTube-4a7f90248b546803cab07188521ac97e175b31e6.tar.gz PeerTube-4a7f90248b546803cab07188521ac97e175b31e6.tar.zst PeerTube-4a7f90248b546803cab07188521ac97e175b31e6.zip |
Fix cors on sha segment endpoint
Diffstat (limited to 'server/controllers')
-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 | ||