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

update: allow DELETE in CORS

parent 1867505e
No related branches found
Tags v0.5.77
No related merge requests found
Pipeline #935 passed with stage
in 1 minute and 34 seconds
......@@ -135,7 +135,7 @@ class LDPViewSet(LDPViewSetGenerator):
def dispatch(self, request, *args, **kwargs):
response = super(LDPViewSet, self).dispatch(request, *args, **kwargs)
response["Access-Control-Allow-Origin"] = request.META.get('HTTP_ORIGIN')
response["Access-Control-Allow-Methods"] = "GET,POST,PUT,PATCH"
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-Allow-Credentials"] = 'true'
......
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