From 672a64c79777a71ba5a8746b83ecdfb2cb64a116 Mon Sep 17 00:00:00 2001 From: itqop Date: Sun, 17 Mar 2024 19:14:35 +0300 Subject: [PATCH] Added "localhost" to ALLOWED_HOSTS --- rumine/settings/dev.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rumine/settings/dev.py b/rumine/settings/dev.py index 61c3c80..7df1dfb 100644 --- a/rumine/settings/dev.py +++ b/rumine/settings/dev.py @@ -8,7 +8,7 @@ SECRET_KEY = "django-insecure-opj&3@hcho2s_fr2ivz$6ufbx#zph+sxm)q%j-(i8(clv7qq1l # SECURITY WARNING: define the correct hosts in production! ALLOWED_HOSTS = ["*"] -ALLOWED_HOSTS = ["shop.ru-mine.ru", "127.0.0.1"] +ALLOWED_HOSTS = ["shop.ru-mine.ru", "127.0.0.1", "localhost"] CSRF_TRUSTED_ORIGINS = ["https://shop.ru-mine.ru"] CSRF_ALLOWED_ORIGINS = ["https://shop.ru-mine.ru"] CORS_ORIGINS_WHITELIST = ["https://shop.ru-mine.ru"]