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版本...一些参数需要能够吗? –