From ccf1a44c001e233c158bd168dc2d0d96721af929 Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期一, 12 十月 2026 09:31:53 +0800
Subject: [PATCH] fix: 修改后台
---
src/main/java/com/custom/webui/config/SecurityConfig.java | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/custom/webui/config/SecurityConfig.java b/src/main/java/com/custom/webui/config/SecurityConfig.java
index 14defd3..e71dbc7 100644
--- a/src/main/java/com/custom/webui/config/SecurityConfig.java
+++ b/src/main/java/com/custom/webui/config/SecurityConfig.java
@@ -103,8 +103,11 @@
"http://10.*.*.*:*"));
config.setAllowedMethods(List.of("GET", "POST", "PUT", "DELETE", "PATCH", "OPTIONS"));
config.setAllowedHeaders(List.of("*"));
- // SSE 涓嶉渶瑕佹毚闇查澶栧ご锛屼繚鐣� Content-Type 渚夸簬鍓嶇鍒ゆ柇
- config.setExposedHeaders(List.of("Content-Type"));
+ // 娴忚鍣ㄥ彧鍏佽鍓嶇鑴氭湰璇诲彇**鏄惧紡鏆撮湶**鐨勫搷搴斿ご銆�
+ // 瀵煎嚭鎺ュ彛鐨勫缓璁枃浠跺悕灏辨斁鍦� Content-Disposition 閲岋細
+ // 涓嶆毚闇茬殑璇濓紝鍗充娇鍝嶅簲閲屾湁杩欎釜澶村墠绔篃璇讳笉鍒帮紝
+ // 鍙兘閫�鍥炴湰鍦版嫾鐨勬枃浠跺悕 鈥斺�� 涓枃鏍囬涓庢椂闂存埑灏变涪浜嗐��
+ config.setExposedHeaders(List.of("Content-Type", "Content-Disposition"));
config.setAllowCredentials(true);
config.setMaxAge(3600L);
--
Gitblit v1.9.1