nugawiki

./categories/server

Tomcat HTTP 메서드 제한

업데이트 2026-07-21 조회수

Tomcat CATALINA_HOME/conf/web.xml — GET/POST 외 메서드 차단.

<security-constraint>
  <web-resource-collection>
    <web-resource-name>MethodLimit</web-resource-name>
    <url-pattern>/*</url-pattern>
    <http-method>HEAD</http-method>
    <http-method>PUT</http-method>
    <http-method>MOVE</http-method>
    <http-method>DELETE</http-method>
    <http-method>OPTIONS</http-method>
    <http-method>TRACE</http-method>
  </web-resource-collection>
  <auth-constraint>
    <role-name></role-name>
  </auth-constraint>
</security-constraint>

./comments