diff --git a/djangoldp/views.py b/djangoldp/views.py index a6e8c91b10f86354e82db93cd394fa797ef14461..f3a084991efe20d4f692fa1c26d2b1c1cc5e1ca2 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: