From 854ef5136af6027b415b12b1da8bc0d63e280b8a Mon Sep 17 00:00:00 2001
From: Sylvain Le Bon <sylvain@happy-dev.fr>
Date: Mon, 11 Mar 2019 10:29:50 +0000
Subject: [PATCH] update: expose header Location

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

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