Skip to content

Commit

Permalink
Adding documentation on new http response code setting
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-bell authored and aleksihakli committed Aug 19, 2021
1 parent 2368a7a commit e36665e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/4_configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ The following ``settings.py`` options are available for customizing Axes behavio
Default: ``False``
* ``AXES_ALLOWED_CORS_ORIGINS``: Configures lockout response CORS headers for XHR requests.
Default: ``*``
* ``AXES_HTTP_RESPONSE_CODE``: Sets the http response code returned when ``AXES_FAILURE_LIMIT`` is
reached.
For example: ``AXES_HTTP_RESPONSE_CODE = 429``
Default: ``403``

The configuration option precedences for the access attempt monitoring are:

Expand Down

0 comments on commit e36665e

Please sign in to comment.