forked from DGNum/gestioCOF
Merge branch 'Roussille/bda' into 'master'
autorisation des requêtes cross-domain See merge request cof-geek/gestioCOF!253
This commit is contained in:
commit
6c983e16e5
2 changed files with 10 additions and 0 deletions
|
@ -104,9 +104,11 @@ INSTALLED_APPS = [
|
||||||
'taggit',
|
'taggit',
|
||||||
'kfet.auth',
|
'kfet.auth',
|
||||||
'kfet.cms',
|
'kfet.cms',
|
||||||
|
'corsheaders',
|
||||||
]
|
]
|
||||||
|
|
||||||
MIDDLEWARE = [
|
MIDDLEWARE = [
|
||||||
|
'corsheaders.middleware.CorsMiddleware',
|
||||||
'django.contrib.sessions.middleware.SessionMiddleware',
|
'django.contrib.sessions.middleware.SessionMiddleware',
|
||||||
'django.middleware.common.CommonMiddleware',
|
'django.middleware.common.CommonMiddleware',
|
||||||
'django.middleware.csrf.CsrfViewMiddleware',
|
'django.middleware.csrf.CsrfViewMiddleware',
|
||||||
|
@ -208,6 +210,13 @@ AUTHENTICATION_BACKENDS = (
|
||||||
|
|
||||||
RECAPTCHA_USE_SSL = True
|
RECAPTCHA_USE_SSL = True
|
||||||
|
|
||||||
|
CORS_ORIGIN_WHITELIST = (
|
||||||
|
'bda.ens.fr',
|
||||||
|
'www.bda.ens.fr'
|
||||||
|
'cof.ens.fr',
|
||||||
|
'www.cof.ens.fr',
|
||||||
|
)
|
||||||
|
|
||||||
# Cache settings
|
# Cache settings
|
||||||
|
|
||||||
CACHES = {
|
CACHES = {
|
||||||
|
|
|
@ -24,6 +24,7 @@ channels==1.1.5
|
||||||
python-dateutil
|
python-dateutil
|
||||||
wagtail==1.10.*
|
wagtail==1.10.*
|
||||||
wagtailmenus==2.2.*
|
wagtailmenus==2.2.*
|
||||||
|
django-cors-headers==2.2.0
|
||||||
|
|
||||||
# Production tools
|
# Production tools
|
||||||
wheel
|
wheel
|
||||||
|
|
Loading…
Reference in a new issue