A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Fix: ensure CSRF-Token on Index view (#5082)
Florian Bachmann74e89b0ee384
diff --git a/src/paperless/urls.py b/src/paperless/urls.pyindex 67fddbee0..72deaeaf3 100644--- a/src/paperless/urls.py+++ b/src/paperless/urls.py@@ -6,6 +6,7 @@ from django.urls import pathfrom django.urls import re_pathfrom django.utils.translation import gettext_lazy as _from django.views.decorators.csrf import csrf_exempt+from django.views.decorators.csrf import ensure_csrf_cookiefrom django.views.generic import RedirectViewfrom rest_framework.authtoken import viewsfrom rest_framework.routers import DefaultRouter@@ -178,7 +179,11 @@ urlpatterns = [# login, logoutpath("accounts/", include("django.contrib.auth.urls")),# Root of the Frontend- re_path(r".*", login_required(IndexView.as_view()), name="base"),+ re_path(+ r".*",+ login_required(ensure_csrf_cookie(IndexView.as_view())),+ name="base",+ ),]