tomcat 禁用trace,put,head,post,delete 請求方式

背景 html  項目中請求方式只有GET,POST請求,處於安全考慮準備禁用TRACE,HEAD,PUT,DELETE,OPTIONS請求方式。web 實現apache  在tomcat的web.xml配置文件最後加上請求方式限制,配置以下,本次使用的tomcat8tomcat <security-constraint> <web-resource-collection>
相關文章
相關標籤/搜索