From af6cd6321114a731a91be4ea03dbd1e720861a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= <cpartiot@gmail.com> Date: Mon, 27 May 2019 14:32:28 +0200 Subject: [PATCH] bugfix: cors allow-header: accept --- djangoldp/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djangoldp/views.py b/djangoldp/views.py index c21bd1f7..3f2e70b3 100644 --- a/djangoldp/views.py +++ b/djangoldp/views.py @@ -136,7 +136,7 @@ class LDPViewSet(LDPViewSetGenerator): 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-Headers"] = "authorization, Content-Type, if-match" + response["Access-Control-Allow-Headers"] = "authorization, Content-Type, if-match, accept" response["Access-Control-Expose-Headers"] = "Location" response["Access-Control-Allow-Credentials"] = 'true' response["Accept-Post"] = "application/ld+json" -- GitLab