SpringBoot中SpringSecurity 报错:org.springframework.security.web.firewall.RequestRejectedException

报错信息格式

yyyy-MM-dd HH:mm:ss,SSS|ERROR Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception
org.springframework.security.web.firewall.RequestRejectedException: The request was rejected because the header value “discount_free_trigger=true; freePromorunningtmr=Fri Jan 02 1970 00:06:47 GMT+0800 (???é??); JSESSIONID=999999C999F999C999D999099949997F” is not allowed.

报错分析

根据内容RequestRejectedException信息后面的报错信息得到一组关键信息

The request was rejected because the header value "content " is not allowed.
由于不允许标头值“content”,请求被拒绝。

这个问题就很明显了,是其中一个请求头出了问题

  1. discount_free_trigger=true;
  2. freePromorunningtmr=Fri Jan 02 1970 00:06:47 GMT+0800 (???é??);
  3. JSESSIONID=999999C999F999C999D999099949997F

问题处理

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值