Skip to content

Commit a4ec1c3

Browse files
committed
update settings
1 parent 71185c1 commit a4ec1c3

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

src/bot_constructor/settings.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,18 @@
4747
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'http')
4848
USE_X_FORWARDED_HOST = True
4949
USE_X_FORWARDED_PORT = True
50+
51+
CSRF_COOKIE_SECURE = False
52+
SESSION_COOKIE_SECURE = False
53+
54+
# CORS settings
55+
CORS_ALLOWED_ORIGINS = [
56+
"http://89.104.71.118",
57+
"http://localhost:8000",
58+
"http://127.0.0.1:8000",
59+
]
60+
CORS_ALLOW_CREDENTIALS = True
61+
5062
INSTALLED_APPS = [
5163
"dal",
5264
"dal_select2",
@@ -173,7 +185,6 @@
173185
],
174186
}
175187

176-
CORS_ALLOW_CREDENTIALS = True
177188

178189
CELERY_BROKER_URL = env("REDIS_URL", default="redis://localhost:6379/0")
179190
CELERY_RESULT_BACKEND = env("REDIS_URL", default="redis://localhost:6379/0")

0 commit comments

Comments
 (0)