Skip to content

Commit

Permalink
Merge pull request #4648 from codeigniter4/filter-doc-fix
Browse files Browse the repository at this point in the history
[ci skip] Remove ajax filter reference from docs. Fixes #2314
  • Loading branch information
MGatner authored May 5, 2021
2 parents 4cc1452 + c6bbc6b commit 5cbf51c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions user_guide_src/source/incoming/filters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,8 @@ specify the method name in lowercase. It's value would be an array of filters to
'get' => ['baz'],
]

In addition to the standard HTTP methods, this also supports two special cases: 'cli', and 'ajax'. The names are
self-explanatory here, but 'cli' would apply to all requests that were run from the command line, while 'ajax'
would apply to every AJAX request.

.. 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.
In addition to the standard HTTP methods, this also supports one special case: 'cli'. The 'cli' method would apply to
all requests that were run from the command line.

$filters
========
Expand Down

0 comments on commit 5cbf51c

Please sign in to comment.