Pre Merge pull request !208 from xlt/dev

This commit is contained in:
xlt 2022-07-19 06:12:24 +00:00 committed by Gitee
commit 97a2320d18
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -196,6 +196,7 @@ public class ExcelUtil {
String filename = encodingFilename(sheetName);
response.reset();
FileUtils.setAttachmentResponseHeader(response, filename);
response.addHeader("Access-Control-Allow-Origin", "*");
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8");
}