diff options
| author | Pitu <[email protected]> | 2021-01-07 02:11:53 +0900 |
|---|---|---|
| committer | Pitu <[email protected]> | 2021-01-07 02:11:53 +0900 |
| commit | 28efb0d9eddb93b2823b3d260975779c70e15f67 (patch) | |
| tree | 5dc0da2b48bd65470d7f2b02717cc2063dab1fc1 /src/api/structures/Server.js | |
| parent | fix: dont show admin navbar if not an admin (diff) | |
| download | host.fuwn.me-28efb0d9eddb93b2823b3d260975779c70e15f67.tar.xz host.fuwn.me-28efb0d9eddb93b2823b3d260975779c70e15f67.zip | |
feature: new chunk and write strategy
Diffstat (limited to 'src/api/structures/Server.js')
| -rw-r--r-- | src/api/structures/Server.js | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |