fix 修复 gateway设置默认请求头无法覆盖问题
This commit is contained in:
@@ -47,10 +47,6 @@ public class AuthFilter implements WebMvcConfigurer {
|
||||
.notMatch(ignoreWhite.getWhites())
|
||||
.check(() -> {
|
||||
HttpServletRequest request = ServletUtils.getRequest();
|
||||
HttpServletResponse response = ServletUtils.getResponse();
|
||||
if (response != null) {
|
||||
response.setContentType(SaTokenConsts.CONTENT_TYPE_APPLICATION_JSON);
|
||||
}
|
||||
|
||||
StpUtil.checkLogin();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user