jerry c3d1cd2472 Return json output instead of html when wrong token in Header Authorization (#1247)
fix #1246

Return a JsonResponse instead of raising AuthenticationFailed
Exception that is turned into the general html error by django.

rest_framework.response.Response should not be used in middleware,
will return django.template.response.ContentNotRenderedError.
2024-04-29 23:08:46 +00:00
..
2022-10-20 09:56:10 +00:00
2022-10-25 11:04:12 -07:00
2022-02-17 11:50:10 -08:00