Skip to content

Commit 1068da4

Browse files
author
Chaim Sanders
committed
Updated recommended conf to enter XML processor when content-type is application/xml
1 parent 880b276 commit 1068da4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modsecurity.conf-recommended

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ SecRequestBodyAccess On
1919
# Enable XML request body parser.
2020
# Initiate XML Processor in case of xml content-type
2121
#
22-
SecRule REQUEST_HEADERS:Content-Type "text/xml" \
22+
SecRule REQUEST_HEADERS:Content-Type "(?:text|application)/xml" \
2323
"id:'200000',phase:1,t:none,t:lowercase,pass,nolog,ctl:requestBodyProcessor=XML"
2424

2525
# Enable JSON request body parser.

0 commit comments

Comments
 (0)