From 420a43cdd59c7a267d1e0a20b339de7626938819 Mon Sep 17 00:00:00 2001 From: younger007 <1304593345@qq.com> Date: Mon, 14 Mar 2022 02:52:29 +0000 Subject: [PATCH] =?UTF-8?q?update=20ruoyi-generator/src/main/java/com/ruoy?= =?UTF-8?q?i/generator/controller/GenController.java.=20=E5=92=8C=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E4=B8=8B=E8=BD=BD=E9=82=A3=E8=BE=B9=E4=B8=80=E6=A0=B7?= =?UTF-8?q?=EF=BC=8C=E5=AD=98=E5=9C=A8=E8=B7=A8=E5=9F=9F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/ruoyi/generator/controller/GenController.java | 1 - 1 file changed, 1 deletion(-) diff --git a/ruoyi-generator/src/main/java/com/ruoyi/generator/controller/GenController.java b/ruoyi-generator/src/main/java/com/ruoyi/generator/controller/GenController.java index 2e9e760..97ff95c 100644 --- a/ruoyi-generator/src/main/java/com/ruoyi/generator/controller/GenController.java +++ b/ruoyi-generator/src/main/java/com/ruoyi/generator/controller/GenController.java @@ -204,7 +204,6 @@ public class GenController extends BaseController private void genCode(HttpServletResponse response, byte[] data) throws IOException { response.reset(); - response.addHeader("Access-Control-Allow-Origin", "*"); response.addHeader("Access-Control-Expose-Headers", "Content-Disposition"); response.setHeader("Content-Disposition", "attachment; filename=\"ruoyi.zip\""); response.addHeader("Content-Length", "" + data.length);