Added "localhost" to ALLOWED_HOSTS

This commit is contained in:
itqop 2024-03-17 19:14:35 +03:00
parent 89a4314e95
commit 672a64c797
1 changed files with 1 additions and 1 deletions

View File

@ -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! # SECURITY WARNING: define the correct hosts in production!
ALLOWED_HOSTS = ["*"] 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_TRUSTED_ORIGINS = ["https://shop.ru-mine.ru"]
CSRF_ALLOWED_ORIGINS = ["https://shop.ru-mine.ru"] CSRF_ALLOWED_ORIGINS = ["https://shop.ru-mine.ru"]
CORS_ORIGINS_WHITELIST = ["https://shop.ru-mine.ru"] CORS_ORIGINS_WHITELIST = ["https://shop.ru-mine.ru"]