[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jetty-users] Enabling HTTP PUT
|
That section in webdefault.xml looks like this:
<security-constraint>
<web-resource-collection>
<web-resource-name>Disable TRACE</web-resource-name>
<url-pattern>/</url-pattern>
<http-method>TRACE</http-method>
</web-resource-collection>
<auth-constraint/>
</security-constraint>
When I send a PUT, I get status code 405. I have read the PUT is disabled by default. If that's true, how do I enable it?
On Sat, Aug 11, 2012 at 6:24 PM, Joakim Erdfelt
<joakim@xxxxxxxxxxx> wrote:
The only way I know of to disable a method like PUT, in jetty, is to specify it in a security constraint in your web.xml
Do you have something like this in your web.xml?
<security-constraint>
<web-resource-collection>
<web-resource-name>NoPut</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>PUT</http-method>
</web-resource-collection>
<auth-constraint>
</auth-constraint>
</security-constraint>
--
Developer advice, services and support
from the Jetty & CometD experts.
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users