mirror of
https://gitee.com/nicefold/seewis-cloud-plus.git
synced 2026-10-14 10:02:13 +08:00
fix 修复 sse响应头被覆盖问题
This commit is contained in:
+1
-1
@@ -47,7 +47,7 @@ public class SecurityConfiguration implements WebMvcConfigurer {
|
||||
SaSameUtil.checkCurrentRequestToken();
|
||||
}
|
||||
String requestUri = ServletUtils.getRequest().getRequestURI();
|
||||
if (!requestUri.contains("/sse")) {
|
||||
if (!requestUri.contains("/message")) {
|
||||
// 对响应体设置默认头 后续代码可以覆盖
|
||||
HttpServletResponse response = ServletUtils.getResponse();
|
||||
response.setContentType(SaTokenConsts.CONTENT_TYPE_APPLICATION_JSON);
|
||||
|
||||
Reference in New Issue
Block a user