Merge branch 'refs/heads/dev' into pet-图片单独上传接口-2024.8.28-徐绎丰
commit
4c6aa7d8ff
|
@ -48,6 +48,11 @@ public class CORSFilter implements Filter {
|
|||
response.setHeader("x-frame-options","SAMEORIGIN"); // ****
|
||||
response.setHeader("X-Content-Type-Options","nosniff");
|
||||
response.setHeader("Content-Security-Policy","default-src 'none'; script-src 'self'; connect-src 'self'; img-src 'self'; style-src 'self';");
|
||||
// 一公司烯体哦那个系统漏洞修复
|
||||
response.setHeader("X-XSS-Protection", "1; mode=block");
|
||||
response.setHeader("X-Permitted-Cross-Domain-Policies", "none");
|
||||
response.setHeader("Strict-Transport-Security", "max-age=31536000; includeSubDomains; preload");
|
||||
response.setHeader("Referrer-Policy", "strict-origin-when-cross-origin");
|
||||
filterChain.doFilter(servletRequest, servletResponse);
|
||||
// }
|
||||
}
|
||||
|
|
|
@ -19,6 +19,7 @@ public class EncodingFilterConfig {
|
|||
characterEncodingFilter.setForceEncoding(true);
|
||||
characterEncodingFilter.setEncoding("UTF-8");
|
||||
registrationBean.setFilter(characterEncodingFilter);
|
||||
registrationBean.addUrlPatterns("/*");
|
||||
return registrationBean;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -71,7 +71,7 @@ smb.basePath=/mnt/wwag/file/
|
|||
#Mq\u914D\u7F6E
|
||||
rocketmq.consumer.group2=edu-admin-edit
|
||||
rocketmq.consumer.group1=edu-admin-add
|
||||
rocketmq.name-server=39.100.115.58:8899
|
||||
rocketmq.name-server=172.24.151.22:9876
|
||||
rocketmq.producer.group=libmiddle
|
||||
rocketmq.producer.send-message-timeout=3000
|
||||
rocketmq.producer.compress-message-body-threshold=4096
|
||||
|
|
Loading…
Reference in New Issue