网站漏洞解决-[轻微]WEB服务器启动了OPTIONS方法
2017-11-01 13:30
337 查看
解决方法:
使所有项目都执行,修改tomcat配置文件web.xml,添加如下代码:
使所有项目都执行,修改tomcat配置文件web.xml,添加如下代码:
<security-constraint> <web-resource-collection> <url-pattern>/*</url-pattern> <http-method>PUT</http-method> <http-method>DELETE</http-method> <http-method>HEAD</http-method> <http-method>OPTIONS</http-method> <http-method>TRACE</http-method> </web-resource-collection> <auth-constraint> </auth-constraint> </security-constraint> <login-config> <auth-method>BASIC</auth-method> </login-config>若只想某个项目使用,只需要在该项目的web.xml文件添加上述代码。
相关文章推荐
- vs2015启动网站调试提示 HTTP 错误 403.14 - Forbidden Web 服务器被配置为不列出此目录的内容。 解决方法
- vs2015启动网站调试提示 HTTP 错误 403.14 - Forbidden Web 服务器被配置为不列出此目录的内容。 解决方法
- vs2015启动网站调试提示 HTTP 错误 403.14 - Forbidden Web 服务器被配置为不列出此目录的内容。 解决方法
- VS2010中WCF配置web服务器上无法启动调试解决方法
- 无法在web服务器上启动调试,web服务器配置不正确的解决方法————转载在百度
- "无法在web服务器上启动调试,未将项目配置为进行调试"解决方法
- 访问 IIS 元数据库失败 或 W3SVC 的访问权问题解决方法 或 无法在Web服务器上启动调试
- vs2013中将原来在iis express中的网站转到iis中时,报“无法在web服务器上调试”的解决方法
- 无法在web服务器上启动项目另一种解决方法
- 无法在Web服务器上启动调试,未将项目配置为进行调试的解决方法
- “无法在Web服务器上启动调试.你不具备调试此程序的权限,此项目的URL位于Internet区域”的解决方法
- [轻微]WEB服务器启用了OPTIONS方法/如何禁止DELETE,PUT,OPTIONS等协议访问应用程序/tomcat下禁用不安全的http方法
- VS2003的调试症状:“试图运行项目时出错:无法在web服务器上启动调试。”的解决方法
- "无法启动Web服务器。Web服务器无法找到请求的资源" 或 "unable to start debugging on the web server.the web server could not find the request"解决方法
- 无法在web服务器上启动调试, Server Application Error......错误解决方法
- 无法在 Web 服务器上启动调试。与 Web 服务器通信时出现身份验证错误,解决方法!
- vs2008“无法在web服务器上启动调试”解决方法
- [轻微]WEB服务器启用了OPTIONS方法/如何禁止DELETE,PUT,OPTIONS等协议访问应用程序/tomcat下禁用不安全的http方法
- [轻微]WEB服务器启用了OPTIONS方法/如何禁止DELETE,PUT,OPTIONS等协议访问应用程序/tomcat下禁用不安全的http方法
- “无法在 Web 服务器上启动调试”的解决方法