Commit f6fef3d8 authored by okhin's avatar okhin 🚴

Allow CORS queries

parent 3e73522d
Pipeline #2425 failed with stages
in 51 seconds
...@@ -25,6 +25,8 @@ DEBUG = False ...@@ -25,6 +25,8 @@ DEBUG = False
ALLOWED_HOSTS = [] ALLOWED_HOSTS = []
# CORS ALLOWED
CORS_ORIGIN_ALLOW_ALL = True
# Application definition # Application definition
...@@ -43,11 +45,14 @@ INSTALLED_APPS = ( ...@@ -43,11 +45,14 @@ INSTALLED_APPS = (
'picampaign.organization', 'picampaign.organization',
'picampaign.feedback', 'picampaign.feedback',
'picampaign.importer', 'picampaign.importer',
'rest_framework_docs',
'corsheaders',
) )
MIDDLEWARE_CLASSES = ( MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware', 'django.middleware.locale.LocaleMiddleware',
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware', 'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment