cors
This commit is contained in:
@@ -30,6 +30,7 @@ ALLOWED_HOSTS = ['*']
|
||||
|
||||
INSTALLED_APPS = [
|
||||
'bootstrap_datepicker_plus',
|
||||
'corsheaders',
|
||||
'web.apps.WebConfig',
|
||||
'django.contrib.admin',
|
||||
'django.contrib.auth',
|
||||
@@ -40,6 +41,7 @@ INSTALLED_APPS = [
|
||||
]
|
||||
|
||||
MIDDLEWARE = [
|
||||
'corsheaders.middleware.CorsMiddleware',
|
||||
'django.middleware.security.SecurityMiddleware',
|
||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||
'django.middleware.common.CommonMiddleware',
|
||||
@@ -118,3 +120,5 @@ USE_TZ = False
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
# DATETIME_FORMAT = ''
|
||||
|
||||
CORS_ORIGIN_ALLOW_ALL = True
|
||||
|
Reference in New Issue
Block a user