Commit 4fac6be2 authored by Vasyl Bodnaruk's avatar Vasyl Bodnaruk

add cors headers

parent 0bc69a73
......@@ -38,6 +38,7 @@ INSTALLED_APPS = [
'django.contrib.messages',
'django.contrib.staticfiles',
'el_pagination',
'corsheaders',
'webapp.apps.WebappConfig',
'main.apps.MainConfig',
......@@ -52,8 +53,12 @@ MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
]
CORS_ORIGIN_ALLOW_ALL = True
ROOT_URLCONF = 'esi.urls'
TEMPLATES = [
......
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