fix [P-276]: csrf
This commit is contained in:
1 parent
30d515b9e0
commit
cda61dd9cb
2 files changed
+8
-6
No files matched your search
@@ -56,3 +56,7 @@ NGINX_INTERNAL_PORT=80
|
|||||||
|
|
||||||
RUN_WITH_DOCS=False
|
RUN_WITH_DOCS=False
|
||||||
PRODUCTION=True
|
PRODUCTION=True
|
||||||
|
|
||||||
|
|
||||||
|
DJANGO_CSRF_TRUSTED_ORIGINS="http://localhost, http://portal-t, http://127.0.0.1, http://portal9966/"
|
||||||
|
DJANGO_ALLOWED_HOSTS="*, portal-t, portal9966, localhost, 0.0.0.0'
|
||||||
@@ -38,12 +38,10 @@ SWAGGER_SETTINGS = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
CSRF_TRUSTED_ORIGINS = [
|
|
||||||
'http://localhost',
|
|
||||||
'http://127.0.0.1',
|
ALLOWED_HOSTS = str(os.getenv('DJANGO_ALLOWED_HOSTS')).split(', ')
|
||||||
'http://yourdomain.com', # Add your production domain here
|
CSRF_TRUSTED_ORIGINS = str(os.getenv('DJANGO_CSRF_TRUSTED_ORIGINS')).split(', ')
|
||||||
]
|
|
||||||
ALLOWED_HOSTS = ["*","portal-t",'portal9966','localhost','0.0.0.0']
|
|
||||||
CHANNEL_LAYERS = {
|
CHANNEL_LAYERS = {
|
||||||
"default": {
|
"default": {
|
||||||
"BACKEND": "channels_redis.core.RedisChannelLayer",
|
"BACKEND": "channels_redis.core.RedisChannelLayer",
|
||||||
|
|||||||
Reference in new issue
Block a user