Skip to content

Commit 9994e7a

Browse files
authored
Update wordpress-rule-exclusions-before.conf (#38)
1 parent db1535c commit 9994e7a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: plugins/wordpress-rule-exclusions-before.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ SecRule REQUEST_FILENAME "@endsWith /wp-admin/comment.php" \
115115
#
116116

117117
# Gutenberg
118-
SecRule REQUEST_FILENAME "@rx /wp-json/wp/v[0-9]+/(?:posts|pages)" \
118+
SecRule REQUEST_FILENAME "@rx /wp-json/wp/v[0-9]+/(?:posts|pages|templates)" \
119119
"id:9507140,\
120120
phase:1,\
121121
pass,\
@@ -215,7 +215,7 @@ SecRule REQUEST_FILENAME "@endsWith /index.php" \
215215

216216
# Cannot update page|post in WordPress due to `x-http-method-override` header.
217217
# This rule is a copy of rule 900250 and must be synchronised with that rule.
218-
SecRule REQUEST_FILENAME "@rx /wp-json/wp/v[0-9]+/(?:posts|pages|users)" \
218+
SecRule REQUEST_FILENAME "@rx /wp-json/wp/v[0-9]+/(?:posts|pages|users|templates)" \
219219
"id:9507146,\
220220
phase:1,\
221221
pass,\

0 commit comments

Comments
 (0)