fix 修复 部分浏览器无法获取加密响应头问题

2.X
疯狂的狮子Li 9 months ago
parent c57c3cf5ef
commit 00183fc2d6

@ -79,6 +79,7 @@ public class EncryptResponseBodyWrapper extends HttpServletResponseWrapper {
String encryptPassword = EncryptUtils.encryptByRsa(encryptAes, publicKey);
// 设置响应头
servletResponse.addHeader("Access-Control-Expose-Headers", headerFlag);
servletResponse.setHeader(headerFlag, encryptPassword);
servletResponse.setHeader("Access-Control-Allow-Origin", "*");
servletResponse.setHeader("Access-Control-Allow-Methods", "*");

Loading…
Cancel
Save