From 8ddaba773b41d17ea6e1144d204b330908cd2aca Mon Sep 17 00:00:00 2001 From: 3wc <3wc.git@doesthisthing.work> Date: Thu, 3 Jun 2021 16:21:34 +0200 Subject: [PATCH] CORS settings --- example-settings.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/example-settings.yml b/example-settings.yml index 0496c15..61b2d5c 100644 --- a/example-settings.yml +++ b/example-settings.yml @@ -14,6 +14,7 @@ dependencies: - djangoldp-conversation - djangoldp-uploader - djangoldp-skill +- django-cors-headers ldppackages: - djangoldp_i18n @@ -73,3 +74,21 @@ server: WEBPUSH_SETTINGS: VAPID_ADMIN_EMAIL: "test@example.com" + + CORS_ALLOWED_ORIGINS: + - "http://localhost:1234" + + CORS_ALLOW_HEADERS: + - 'accept' + - 'accept-encoding' + - 'authorization' + - 'content-type' + - 'dnt' + - 'origin' + - 'user-agent' + - 'x-csrftoken' + - 'x-requested-with' + - 'dpop' + + CORS_ALLOW_CREDENTIALS: True +