Skip to content

Commit

Permalink
docs: document guards behavior when placed at controller and app level (
Browse files Browse the repository at this point in the history
  • Loading branch information
guacs authored Mar 22, 2024
1 parent be9af3f commit 5a9e9e9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/usage/security/guards.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,12 @@ As you can see in the above examples - ``guards`` is a list. This means you can
Unlike ``dependencies`` , guards do not override each other but are rather *cumulative*. This means that you can define
guards on different levels of your app, and they will combine.

.. caution::

If guards are placed at the controller or the app level, they **will** be executed on all ``OPTIONS`` requests as well.
For more details, including a workaround, refer https://github.com/litestar-org/litestar/issues/2314.


The route handler "opt" key
---------------------------

Expand Down

0 comments on commit 5a9e9e9

Please sign in to comment.