From e51c0eb36cdd00ea205161b59f1363c136f72f08 Mon Sep 17 00:00:00 2001 From: xream Date: Wed, 22 Jul 2026 16:17:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E5=AF=BC=E5=87=BA?= =?UTF-8?q?=E8=AE=A2=E9=98=85/=E6=96=87=E4=BB=B6=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/restful/collections.js | 1 + backend/src/restful/file.js | 1 + backend/src/restful/subscriptions.js | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/package.json b/backend/package.json index 32136277..f5e538c5 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.36.18", + "version": "2.36.19", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", "main": "src/main.js", "packageManager": "pnpm@11.0.9", diff --git a/backend/src/restful/collections.js b/backend/src/restful/collections.js index 73b7f73c..7c3bbcb2 100644 --- a/backend/src/restful/collections.js +++ b/backend/src/restful/collections.js @@ -46,6 +46,7 @@ function getCollection(req, res) { if (collection) { if (raw) { res.set('content-type', 'application/json') + .set('access-control-expose-headers', 'content-disposition') .set( 'content-disposition', `attachment; filename="${encodeURIComponent( diff --git a/backend/src/restful/file.js b/backend/src/restful/file.js index 0c88a5b3..a41288f9 100644 --- a/backend/src/restful/file.js +++ b/backend/src/restful/file.js @@ -424,6 +424,7 @@ function getWholeFile(req, res) { if (file) { if (raw) { res.set('content-type', 'application/json') + .set('access-control-expose-headers', 'content-disposition') .set( 'content-disposition', `attachment; filename="${encodeURIComponent( diff --git a/backend/src/restful/subscriptions.js b/backend/src/restful/subscriptions.js index e04f78d8..b411804e 100644 --- a/backend/src/restful/subscriptions.js +++ b/backend/src/restful/subscriptions.js @@ -256,6 +256,7 @@ function getSubscription(req, res) { if (sub) { if (raw) { res.set('content-type', 'application/json') + .set('access-control-expose-headers', 'content-disposition') .set( 'content-disposition', `attachment; filename="${encodeURIComponent(