mirror of
https://github.com/fspc/workstand.git
synced 2025-02-23 09:13:23 -05:00
Allow CORS.
This commit is contained in:
parent
d81e7c5e1d
commit
eb419e7e96
@ -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
|
||||
|
@ -1,3 +1,4 @@
|
||||
-r base.txt
|
||||
-r testing.txt
|
||||
django-debug-toolbar
|
||||
django-cors-headers
|
||||
|
Loading…
x
Reference in New Issue
Block a user