From 3f81b7b436b99969bc2440fd784f6fc8be76b932 Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Pasquier <contact@jbpasquier.eu>
Date: Tue, 24 Mar 2020 16:52:03 +0100
Subject: [PATCH] fix: expose user on header

---
 djangoldp/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/djangoldp/views.py b/djangoldp/views.py
index 8889220f..16153b9f 100644
--- a/djangoldp/views.py
+++ b/djangoldp/views.py
@@ -228,7 +228,7 @@ class LDPViewSet(LDPViewSetGenerator):
         response["Access-Control-Allow-Origin"] = request.META.get('HTTP_ORIGIN')
         response["Access-Control-Allow-Methods"] = "GET,POST,PUT,PATCH,DELETE"
         response["Access-Control-Allow-Headers"] = "authorization, Content-Type, if-match, accept"
-        response["Access-Control-Expose-Headers"] = "Location"
+        response["Access-Control-Expose-Headers"] = "Location, User"
         response["Access-Control-Allow-Credentials"] = 'true'
         response["Accept-Post"] = "application/ld+json"
         if response.status_code in [201, 200] and '@id' in response.data:
-- 
GitLab