We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71185c1 commit a4ec1c3Copy full SHA for a4ec1c3
1 file changed
src/bot_constructor/settings.py
@@ -47,6 +47,18 @@
47
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'http')
48
USE_X_FORWARDED_HOST = True
49
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
62
INSTALLED_APPS = [
63
"dal",
64
"dal_select2",
@@ -173,7 +185,6 @@
173
185
],
174
186
}
175
187
176
-CORS_ALLOW_CREDENTIALS = True
177
188
178
189
CELERY_BROKER_URL = env("REDIS_URL", default="redis://localhost:6379/0")
179
190
CELERY_RESULT_BACKEND = env("REDIS_URL", default="redis://localhost:6379/0")
0 commit comments