!452 跨域问题

Merge pull request !452 from younger007/master
This commit is contained in:
若依 2022-03-15 06:23:38 +00:00 committed by Gitee
commit ed693e89c9
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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);