Fix CORS
This commit is contained in:
parent
12b76ce7a5
commit
3ff849c95a
|
@ -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",
|
|
||||||
# Другие доверенные источники...
|
|
||||||
]
|
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue