aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/activitypub/client.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/controllers/activitypub/client.ts b/server/controllers/activitypub/client.ts
index 84828e7e0..c3aeeebf5 100644
--- a/server/controllers/activitypub/client.ts
+++ b/server/controllers/activitypub/client.ts
@@ -1,4 +1,5 @@
1import * as express from 'express' 1import * as express from 'express'
2import * as cors from 'cors'
2import { VideoPrivacy, VideoRateType } from '../../../shared/models/videos' 3import { VideoPrivacy, VideoRateType } from '../../../shared/models/videos'
3import { activityPubCollectionPagination, activityPubContextify } from '../../helpers/activitypub' 4import { activityPubCollectionPagination, activityPubContextify } from '../../helpers/activitypub'
4import { ROUTE_CACHE_LIFETIME, WEBSERVER } from '../../initializers/constants' 5import { ROUTE_CACHE_LIFETIME, WEBSERVER } from '../../initializers/constants'
@@ -39,6 +40,7 @@ import { VideoPlaylistPrivacy } from '../../../shared/models/videos/playlist/vid
39import { MAccountId, MActorId, MVideoAPWithoutCaption, MVideoId } from '@server/typings/models' 40import { MAccountId, MActorId, MVideoAPWithoutCaption, MVideoId } from '@server/typings/models'
40 41
41const activityPubClientRouter = express.Router() 42const activityPubClientRouter = express.Router()
43activityPubClientRouter.use(cors())
42 44
43// Intercept ActivityPub client requests 45// Intercept ActivityPub client requests
44 46