mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Updated recommended conf to enter XML processor when content-type is application/xml
This commit is contained in:
@@ -19,7 +19,7 @@ SecRequestBodyAccess On
|
|||||||
# Enable XML request body parser.
|
# Enable XML request body parser.
|
||||||
# Initiate XML Processor in case of xml content-type
|
# Initiate XML Processor in case of xml content-type
|
||||||
#
|
#
|
||||||
SecRule REQUEST_HEADERS:Content-Type "text/xml" \
|
SecRule REQUEST_HEADERS:Content-Type "(?:text|application)/xml" \
|
||||||
"id:'200000',phase:1,t:none,t:lowercase,pass,nolog,ctl:requestBodyProcessor=XML"
|
"id:'200000',phase:1,t:none,t:lowercase,pass,nolog,ctl:requestBodyProcessor=XML"
|
||||||
|
|
||||||
# Enable JSON request body parser.
|
# Enable JSON request body parser.
|
||||||
|
Reference in New Issue
Block a user