0
我想禁用我的glassfish上的一些http方法。Glassfish配置http方法
我想知道我可以如何不通過glassfish v3上的「選項」和「跟蹤」http方法提供通信。
< Allow: TRACE, OPTIONS
我想禁用我的glassfish上的一些http方法。Glassfish配置http方法
我想知道我可以如何不通過glassfish v3上的「選項」和「跟蹤」http方法提供通信。
< Allow: TRACE, OPTIONS
您可以在以下安全約束添加到web.xml:
<security-constraint>
<web-resource-collection>
<web-resource-name>Forbidden</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>OPTIONS</http-method>
<http-method>TRACE</http-method>
</web-resource-collection>
<auth-constraint />
</security-constraint>
我想這一點,但沒有工作...我使用3.1版本...一些參數需要能夠嗎? –