CORS settings

This commit is contained in:
3wc 2021-06-03 16:21:34 +02:00
parent 495db314e4
commit 8ddaba773b

View File

@ -14,6 +14,7 @@ dependencies:
- djangoldp-conversation - djangoldp-conversation
- djangoldp-uploader - djangoldp-uploader
- djangoldp-skill - djangoldp-skill
- django-cors-headers
ldppackages: ldppackages:
- djangoldp_i18n - djangoldp_i18n
@ -73,3 +74,21 @@ server:
WEBPUSH_SETTINGS: WEBPUSH_SETTINGS:
VAPID_ADMIN_EMAIL: "test@example.com" 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