TASK:HEADER

This commit is contained in:
shahaibo
2024-04-03 16:29:00 +08:00
parent 60c7717f31
commit f17e5f097d

View File

@@ -88,6 +88,7 @@ public class MiTuExportServiceImpl implements MiTuExportService {
// 设置响应头
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
response.setHeader("Access-Control-Expose-Headers", "Content-Disposition");
response.setHeader("Content-Disposition", "attachment; filename=" + split[2]);
// 将文件内容写入响应输出流