Skip to content

Instantly share code, notes, and snippets.

@joakime
Created February 17, 2012 21:09
Show Gist options
  • Save joakime/1855455 to your computer and use it in GitHub Desktop.
Save joakime/1855455 to your computer and use it in GitHub Desktop.
Security Constraints for WebDAV in web.xml
<security-constraint>
<web-resource-collection>
<!-- from RFC 4918 -->
<web-resource-name>Enabled WebDAV Methods</web-resource-name>
<url-pattern>/*</url-pattern>
<!-- Sec: 9.1 -->
<http-method>PROPFIND</http-method>
<!-- Sec: 9.2 -->
<http-method>PROPPATCH</http-method>
<!-- Sec: 9.3 -->
<http-method>MKCOL</http-method>
<!-- Sec: 9.4 -->
<http-method>GET</http-method>
<http-method>HEAD</http-method>
<!-- Sec: 9.5 -->
<http-method>POST</http-method>
<!-- Sec: 9.6 -->
<http-method>DELETE</http-method>
<!-- Sec: 9.7 -->
<http-method>PUT</http-method>
<!-- Sec: 9.8 -->
<http-method>COPY</http-method>
<!-- Sec: 9.9 -->
<http-method>MOVE</http-method>
<!-- Sec: 9.10 -->
<http-method>LOCK</http-method>
<!-- Sec: 9.11 -->
<http-method>UNLOCK</http-method>
<!-- Sec: 18 -->
<http-method>OPTIONS</http-method>
</web-resource-collection>
</security-constraint>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment