From 593366c03103da0b85293f6249536d231159fbf4 Mon Sep 17 00:00:00 2001
From: Sylvain Le Bon <sylvain@happy-dev.fr>
Date: Thu, 30 May 2019 08:04:55 +0000
Subject: [PATCH] update: allow DELETE in CORS

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

diff --git a/djangoldp/views.py b/djangoldp/views.py
index 3f2e70b3..f5056c87 100644
--- a/djangoldp/views.py
+++ b/djangoldp/views.py
@@ -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'
-- 
GitLab