Skip to content

best way to save what you love

api/tunnel: add `Content-Disposition` to exposed headers

jj45e7b6993705
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,
}));