Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add missing requirement (django CORS)

Roland Geiderfd49308250d1
diff --git a/requirements.txt b/requirements.txt
index 8043a6c8c..5ee5081f2 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -20,6 +20,7 @@ django-bootstrap-breadcrumbs
djangorestframework==2.3.13
django-filter
django-tastypie==0.9.16
+django-cors-headers
# Python3 compatibility
six
diff --git a/wger/settings_global.py b/wger/settings_global.py
index 3ff5d2243..59cbc0c89 100644
--- a/wger/settings_global.py
+++ b/wger/settings_global.py
@@ -369,4 +369,4 @@ SOUTH_MIGRATION_MODULES = {
# Set CORS policy: allow all hosts to access the API
CORS_ORIGIN_ALLOW_ALL = True
-CORS_URLS_REGEX = r'^/api/.*$'
\ No newline at end of file
+CORS_URLS_REGEX = r'^/api/.*$'