1
0
mirror of https://github.com/fspc/workstand.git synced 2025-02-23 09:13:23 -05:00

Allow CORS.

This commit is contained in:
Drew Larson 2017-01-01 17:23:43 -06:00
parent d81e7c5e1d
commit eb419e7e96
2 changed files with 12 additions and 4 deletions

View File

@ -49,13 +49,20 @@ LOGGING = {
},
}
# INSTALLED_APPS += [
# 'debug_toolbar'
# ]
INSTALLED_APPS += [
'corsheaders',
# 'debug_toolbar'
]
# MIDDLEWARE_CLASSES += ['debug_toolbar.middleware.DebugToolbarMiddleware']
MIDDLEWARE_CLASSES.insert(0, 'django.middleware.common.CommonMiddleware')
# MIDDLEWARE_CLASSES += [
# 'debug_toolbar.middleware.DebugToolbarMiddleware'
# ]
# Don't worry about IP addresses, just show the toolbar.
DEBUG_TOOLBAR_CONFIG = {
'SHOW_TOOLBAR_CALLBACK': lambda *args: True
}
CORS_ORIGIN_ALLOW_ALL = True

View File

@ -1,3 +1,4 @@
-r base.txt
-r testing.txt
django-debug-toolbar
django-cors-headers