This commit is contained in:
itqop 2024-03-17 18:20:41 +03:00
parent 12b76ce7a5
commit 3ff849c95a
2 changed files with 5 additions and 4 deletions

View File

@ -176,7 +176,4 @@ WAGTAILSEARCH_BACKENDS = {
# e.g. in notification emails. Don't include '/admin' or a trailing slash # e.g. in notification emails. Don't include '/admin' or a trailing slash
WAGTAILADMIN_BASE_URL = "https://shop.ru-mine.ru" WAGTAILADMIN_BASE_URL = "https://shop.ru-mine.ru"
CORS_ALLOWED_ORIGINS = [
"https://shop.ru-mine.ru",
# Другие доверенные источники...
]

View File

@ -8,6 +8,10 @@ SECRET_KEY = "django-insecure-opj&3@hcho2s_fr2ivz$6ufbx#zph+sxm)q%j-(i8(clv7qq1l
# SECURITY WARNING: define the correct hosts in production! # SECURITY WARNING: define the correct hosts in production!
ALLOWED_HOSTS = ["*"] ALLOWED_HOSTS = ["*"]
ALLOWED_HOSTS = ["https://shop.ru-mine.ru"]
CSRF_TRUSTED_ORIGINS = ["https://shop.ru-mine.ru"]
CSRF_ALLOWED_ORIGINS = ["https://shop.ru-mine.ru"]
CORS_ORIGINS_WHITELIST = ["https://shop.ru-mine.ru"]
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend" EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"