From cec625321c58bd2e6004017892c3ee3107773450 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Pasquier <contact@jbpasquier.eu> Date: Mon, 24 Jun 2024 12:42:04 +0200 Subject: [PATCH] fix: request on ssr/ should be anonymous even on options --- djangoldp/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/djangoldp/views.py b/djangoldp/views.py index 503e01c..f45e362 100644 --- a/djangoldp/views.py +++ b/djangoldp/views.py @@ -629,6 +629,7 @@ def serve_static_content(request, path): if request.method != "GET": resolver = get_resolver() match = resolver.resolve("/" + path) + request.user = AnonymousUser() return match.func(request, *match.args, **match.kwargs) server_url = getattr(settings, "BASE_URL", "http://localhost") -- GitLab