diff --git a/config/settings/base.py b/config/settings/base.py index 147aea8..01e885b 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -37,6 +37,7 @@ INSTALLED_APPS = DJANGO_APPS + THIRD_PARTY_APPS + LOCAL_APPS MIDDLEWARE = ( 'django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', + 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', @@ -159,3 +160,8 @@ REST_FRAMEWORK = { } SITE_ID = 1 + +DJOSER = { + 'SITE_NAME': 'CCDB (test)', + 'DOMAIN': 'localhost:4200', +} diff --git a/requirements/base.txt b/requirements/base.txt index 7468b9e..ce21584 100644 --- a/requirements/base.txt +++ b/requirements/base.txt @@ -18,7 +18,7 @@ requests==2.11.0 # REST djangorestframework==3.4.4 -django-cors-headers==1.1.0 +django-cors-middleware==1.3.1 django-filter==0.14.0 djoser==0.5.0 djangorestframework-jsonapi==2.1.0