From fe4fad401615e152105e29a1872d48cea6eb830a Mon Sep 17 00:00:00 2001 From: legonzaur Date: Fri, 26 May 2023 14:27:55 +0200 Subject: [PATCH] fix cors expose headers --- src/clientMain.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clientMain.ts b/src/clientMain.ts index 4a0635c..8c1ef86 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({ allowedHeaders: ['X-File-Size', 'Content-Encoding'] })) + app.use(cors({ exposedHeaders: ['X-File-Size', 'Content-Encoding'] })) app.get('/', (req, res) => { res.send('Tone client API online') })