File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ SecRule REQUEST_FILENAME "@endsWith /wp-admin/admin-ajax.php" \
131
131
#
132
132
133
133
# Gutenberg
134
- SecRule REQUEST_FILENAME "@rx /wp-json/wp/v[0-9]+/(?:posts|pages|templates)" \
134
+ SecRule REQUEST_FILENAME "@rx /wp-json/wp/v[0-9]+/(?:posts|pages|templates|navigation )" \
135
135
"id:9507140,\
136
136
phase:1,\
137
137
pass,\
@@ -231,17 +231,17 @@ SecRule REQUEST_FILENAME "@endsWith /index.php" \
231
231
232
232
# Cannot update page|post in WordPress due to `x-http-method-override` header.
233
233
# This rule is a copy of rule 900250 and must be synchronised with that rule.
234
- SecRule REQUEST_FILENAME "@rx /wp-json/wp/v[0-9]+/(?:posts|pages|users|templates)" \
234
+ SecRule REQUEST_FILENAME "@rx /wp-json/wp/v[0-9]+/(?:posts|pages|users|templates|navigation )" \
235
235
"id:9507146,\
236
236
phase:1,\
237
237
pass,\
238
238
t:none,\
239
239
nolog,\
240
240
ver:'wordpress-rule-exclusions-plugin/1.0.1',\
241
241
chain"
242
- SecRule REQUEST_METHOD "@streq POST " \
242
+ SecRule &REQUEST_HEADERS:x-http-method-override "!@eq 0 " \
243
243
"t:none,\
244
- setvar:'tx.restricted_headers_basic=/content-encoding/ /proxy/ /lock-token/ /content-range/ /if/ /x-http-method/ /x-method-override/' "
244
+ ctl:ruleRemoveById=920450 "
245
245
246
246
# Loading tags/catagories for pages/posts
247
247
# Obtaining metadata for pages/posts
You can’t perform that action at this time.
0 commit comments