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