mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-23 05:00:25 +08:00
fix(SecurityGlobalFilter.java): 生产环境放行POST请求
This commit is contained in:
parent
712a170cc0
commit
6da89b0629
@ -52,7 +52,7 @@ public class SecurityGlobalFilter implements GlobalFilter, Ordered {
|
||||
if (env.equals("prod")
|
||||
&& (HttpMethod.DELETE.toString().equals(request.getMethodValue()) // 删除方法
|
||||
|| HttpMethod.PUT.toString().equals(request.getMethodValue())) // 修改方法
|
||||
|| HttpMethod.POST.toString().equals(request.getMethodValue()) // 新增方法,新增不存在的路由导致系统无法访问
|
||||
// || HttpMethod.POST.toString().equals(request.getMethodValue()) // 新增方法,新增不存在的路由导致系统无法访问
|
||||
) {
|
||||
return ResponseUtils.writeErrorInfo(response, ResultCode.FORBIDDEN_OPERATION);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user