【发布时间】:2016-04-25 21:48:11
【问题描述】:
我正在使用 tomcat 运行一个 rest api 服务器。 我正在尝试拨打电话:
localhost:8080/.script.alert%28.XSS.%29.%2Fscript./users
我收到了这样的回复:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /�script�alert(�XSS�)�/script�/users was not found on this server.</p>
</body></html>
我想自定义此消息,使 url 不会出现在消息中。 我不确定是谁在生成响应,是 apache 吗?雄猫?球衣?
我已经尝试将错误映射添加到 web.xml,但没有成功。
【问题讨论】:
标签: apache tomcat http-status-code-404 jersey-2.0