diff options
-rw-r--r-- | online_test/settings.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/online_test/settings.py b/online_test/settings.py index fa3712e..99c6d96 100644 --- a/online_test/settings.py +++ b/online_test/settings.py @@ -47,10 +47,13 @@ INSTALLED_APPS = ( 'grades', 'rest_framework', 'api', + 'corsheaders', + 'rest_framework.authtoken' ) MIDDLEWARE = ( 'django.contrib.sessions.middleware.SessionMiddleware', + 'corsheaders.middleware.CorsMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', |