Skip to content

Commit 5cbf51c

Browse files
authored
Merge pull request #4648 from codeigniter4/filter-doc-fix
[ci skip] Remove ajax filter reference from docs. Fixes #2314
2 parents 4cc1452 + c6bbc6b commit 5cbf51c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

user_guide_src/source/incoming/filters.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -167,11 +167,8 @@ specify the method name in lowercase. It's value would be an array of filters to
167167
'get' => ['baz'],
168168
]
169169

170-
In addition to the standard HTTP methods, this also supports two special cases: 'cli', and 'ajax'. The names are
171-
self-explanatory here, but 'cli' would apply to all requests that were run from the command line, while 'ajax'
172-
would apply to every AJAX request.
173-
174-
.. note:: The AJAX requests depends on the ``X-Requested-With`` header, which in some cases is not sent by default in XHR requests via JavaScript (i.e., fetch). See the :doc:`AJAX Requests </general/ajax>` section on how to avoid this problem.
170+
In addition to the standard HTTP methods, this also supports one special case: 'cli'. The 'cli' method would apply to
171+
all requests that were run from the command line.
175172

176173
$filters
177174
========

0 commit comments

Comments
 (0)