From 45e7b699370530e9deba696b6c742f14de22cf64 Mon Sep 17 00:00:00 2001 From: jj Date: Wed, 25 Dec 2024 20:05:18 +0000 Subject: [PATCH] api/tunnel: add `Content-Disposition` to exposed headers --- api/src/core/api.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/src/core/api.js b/api/src/core/api.js index fc890ad2..364764c0 100644 --- a/api/src/core/api.js +++ b/api/src/core/api.js @@ -267,7 +267,8 @@ export const runAPI = async (express, app, __dirname, isPrimary = true) => { app.use('/tunnel', cors({ methods: ['GET'], exposedHeaders: [ - 'Estimated-Content-Length' + 'Estimated-Content-Length', + 'Content-Disposition' ], ...corsConfig, }));