Skip to content
Snippets Groups Projects
Commit af6cd632 authored by Clément's avatar Clément
Browse files

bugfix: cors allow-header: accept

parent 8aaf151c
No related branches found
No related tags found
Loading
Pipeline #920 passed with stage
in 1 minute and 25 seconds
...@@ -136,7 +136,7 @@ class LDPViewSet(LDPViewSetGenerator): ...@@ -136,7 +136,7 @@ class LDPViewSet(LDPViewSetGenerator):
response = super(LDPViewSet, self).dispatch(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-Origin"] = request.META.get('HTTP_ORIGIN')
response["Access-Control-Allow-Methods"] = "GET,POST,PUT,PATCH" 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-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"
......
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