乐趣区

关于前端:Error-parsing-HTTP-request-header

形容

当在浏览器中拜访时,URL 中带有特殊字符,如花括号冒号时,就会呈现这个谬误

Error parsing HTTP request header
Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986

解决方案

批改 catalina.properties 中代码,如下:

tomcat.util.http.parser.HttpParser.requestTargetAllow=|{}

参考详情

https://www.cnblogs.com/zouho…

退出移动版