From 4a7f90248b546803cab07188521ac97e175b31e6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 27 Nov 2020 17:09:36 +0100 Subject: [PATCH] Fix cors on sha segment endpoint --- server/controllers/live.ts | 2 ++ 1 file changed, 2 insertions(+) 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 @@ +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 )