From 28efb0d9eddb93b2823b3d260975779c70e15f67 Mon Sep 17 00:00:00 2001 From: Pitu Date: Thu, 7 Jan 2021 02:11:53 +0900 Subject: feature: new chunk and write strategy --- src/api/structures/Server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api/structures/Server.js') diff --git a/src/api/structures/Server.js b/src/api/structures/Server.js index b8952a9..0dec72a 100644 --- a/src/api/structures/Server.js +++ b/src/api/structures/Server.js @@ -29,7 +29,7 @@ class Server { this.server = express(); this.server.set('trust proxy', 1); this.server.use(helmet()); - this.server.use(cors({ allowedHeaders: ['Accept', 'Authorization', 'Cache-Control', 'X-Requested-With', 'Content-Type', 'albumId'] })); + this.server.use(cors({ allowedHeaders: ['Accept', 'Authorization', 'Cache-Control', 'X-Requested-With', 'Content-Type', 'albumId', 'finishedChunks'] })); this.server.use((req, res, next) => { // This bypasses the headers.accept for album download, since it's accesed directly through the browser. if ((req.url.includes('/api/album/') || req.url.includes('/zip')) && req.method === 'GET') return next(); -- cgit v1.2.3