diff --git a/backend/ciso_assistant/settings.py b/backend/ciso_assistant/settings.py index c682a2237..1d6a8904a 100644 --- a/backend/ciso_assistant/settings.py +++ b/backend/ciso_assistant/settings.py @@ -202,6 +202,10 @@ def set_ciso_assistant_url(_, __, event_dict): REST_FRAMEWORK["DEFAULT_RENDERER_CLASSES"].append( "rest_framework.renderers.BrowsableAPIRenderer" ) + # Add session authentication to allow using the browsable API + REST_FRAMEWORK["DEFAULT_AUTHENTICATION_CLASSES"].append( + "rest_framework.authentication.SessionAuthentication" + ) INSTALLED_APPS.append("django.contrib.staticfiles") STATIC_URL = "/static/"