From d49e9232f55f2cab79b86c529a35e847b45a076c Mon Sep 17 00:00:00 2001 From: legonzaur Date: Fri, 26 May 2023 14:25:09 +0200 Subject: [PATCH] fix cors for file size and encoding --- src/clientMain.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clientMain.ts b/src/clientMain.ts index 44e7ede..4a0635c 100644 --- a/src/clientMain.ts +++ b/src/clientMain.ts @@ -33,7 +33,7 @@ export default if (!cluster.isPrimary) { const app = express() app.use(express.json()) - app.use(cors()) + app.use(cors({ allowedHeaders: ['X-File-Size', 'Content-Encoding'] })) app.get('/', (req, res) => { res.send('Tone client API online') })