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
ALLOWED_HOSTS = []
# CORS ALLOWED
CORS_ORIGIN_ALLOW_ALL = True
# Application definition
......@@ -43,11 +45,14 @@ INSTALLED_APPS = (
'picampaign.organization',
'picampaign.feedback',
'picampaign.importer',
'rest_framework_docs',
'corsheaders',
)
MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.locale.LocaleMiddleware',
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'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