抵御即跨站脚本(XSS)攻击 返回400

来源:2-10 测试跨站脚本攻击

ingdee

2021-01-08

sayHello()的name参数要是用@PathVariable接收就会报这个错误
图片描述

<!doctype html>

HTTP Status 400 – Bad Request

HTTP Status 400 – Bad Request


Type Status Report

Message Invalid URI: noSlash

Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).


Apache Tomcat/9.0.41

写回答

1回答

神思者

2021-01-08

解决方案你可以参考这个帖子,http://www.chaiguanxin.com/articles/2020/03/18/1584495603475.html
1
2
qq_慕前端6288780
回复
ingdee
请问一下,你的问题解决了嘛,我看了文章,照着写了一个还是不行
2021-01-11
共2条回复

SpringBoot 在线协同办公小程序开发 全栈式项目实战

未来趋势型业务 + 前后端综合技术栈 + 惊艳的细节打磨

1798 学习 · 1915 问题

查看课程