diff options
author | Chocobozzz <me@florianbigard.com> | 2018-07-17 15:04:54 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-07-17 15:04:54 +0200 |
commit | 62945f067b90961d6947287014ef5b64781d7ca1 (patch) | |
tree | cb04cb3b9f3ce46f20a92a7875d8a32704f652b6 /server/controllers | |
parent | 0f7fedc39857ebc0eb29182c1588a92b9adfb75a (diff) | |
download | PeerTube-62945f067b90961d6947287014ef5b64781d7ca1.tar.gz PeerTube-62945f067b90961d6947287014ef5b64781d7ca1.tar.zst PeerTube-62945f067b90961d6947287014ef5b64781d7ca1.zip |
Add cors for static paths too
Diffstat (limited to 'server/controllers')
-rw-r--r-- | server/controllers/static.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/controllers/static.ts b/server/controllers/static.ts index 679999859..1600068e0 100644 --- a/server/controllers/static.ts +++ b/server/controllers/static.ts | |||
@@ -8,6 +8,8 @@ import { VideosCaptionCache } from '../lib/cache/videos-caption-cache' | |||
8 | 8 | ||
9 | const staticRouter = express.Router() | 9 | const staticRouter = express.Router() |
10 | 10 | ||
11 | staticRouter.use(cors()) | ||
12 | |||
11 | /* | 13 | /* |
12 | Cors is very important to let other servers access torrent and video files | 14 | Cors is very important to let other servers access torrent and video files |
13 | */ | 15 | */ |