mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Black run on code to comply with py38-qa
This commit is contained in:
parent
cf51e09d75
commit
64b53d55ae
1 changed files with 3 additions and 1 deletions
|
|
@ -343,7 +343,9 @@ def get_lockout_response(request, credentials: dict = None) -> HttpResponse:
|
|||
|
||||
if request.META.get("HTTP_X_REQUESTED_WITH") == "XMLHttpRequest":
|
||||
json_response = JsonResponse(context, status=status)
|
||||
json_response["Access-Control-Allow-Origin"] = settings.AXES_ALLOWED_CORS_ORIGINS
|
||||
json_response[
|
||||
"Access-Control-Allow-Origin"
|
||||
] = settings.AXES_ALLOWED_CORS_ORIGINS
|
||||
json_response["Access-Control-Allow-Methods"] = "POST, OPTIONS"
|
||||
json_response[
|
||||
"Access-Control-Allow-Headers"
|
||||
|
|
|
|||
Loading…
Reference in a new issue