Skip to content
Snippets Groups Projects
Commit 854ef513 authored by Sylvain Le Bon's avatar Sylvain Le Bon
Browse files

update: expose header Location

parent 55edbb37
No related branches found
No related tags found
No related merge requests found
Pipeline #804 passed
...@@ -136,6 +136,7 @@ class LDPViewSet(LDPViewSetGenerator): ...@@ -136,6 +136,7 @@ class LDPViewSet(LDPViewSetGenerator):
response["Access-Control-Allow-Origin"] = request.META.get('HTTP_ORIGIN') response["Access-Control-Allow-Origin"] = request.META.get('HTTP_ORIGIN')
response["Access-Control-Allow-Methods"] = "POST,PUT, PATCH" response["Access-Control-Allow-Methods"] = "POST,PUT, PATCH"
response["Access-Control-Allow-Headers"] = "Content-Type, if-match" response["Access-Control-Allow-Headers"] = "Content-Type, if-match"
response["Access-Control-Expose-Headers"] = "Location"
response["Access-Control-Allow-Credentials"] = 'true' response["Access-Control-Allow-Credentials"] = 'true'
response["Accept-Post"] = "application/ld+json" response["Accept-Post"] = "application/ld+json"
if response.status_code == 201 and '@id' in response.data: if response.status_code == 201 and '@id' in response.data:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment