From 12b76ce7a5a41a2c07833f6fcb58a6c801ac2584 Mon Sep 17 00:00:00 2001 From: itqop Date: Sun, 17 Mar 2024 18:12:39 +0300 Subject: [PATCH] Fix CORS --- rumine/settings/base.py | 7 ++++++- rumine/settings/dev.py | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/rumine/settings/base.py b/rumine/settings/base.py index 0c9aa86..4216af1 100644 --- a/rumine/settings/base.py +++ b/rumine/settings/base.py @@ -174,4 +174,9 @@ WAGTAILSEARCH_BACKENDS = { # Base URL to use when referring to full URLs within the Wagtail admin backend - # e.g. in notification emails. Don't include '/admin' or a trailing slash -WAGTAILADMIN_BASE_URL = "https://ru-mine.ru" +WAGTAILADMIN_BASE_URL = "https://shop.ru-mine.ru" + +CORS_ALLOWED_ORIGINS = [ + "https://shop.ru-mine.ru", + # Другие доверенные источники... +] \ No newline at end of file diff --git a/rumine/settings/dev.py b/rumine/settings/dev.py index 752a0a0..c6c2e2c 100644 --- a/rumine/settings/dev.py +++ b/rumine/settings/dev.py @@ -1,7 +1,7 @@ from .base import * # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = False +DEBUG = True # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = "django-insecure-opj&3@hcho2s_fr2ivz$6ufbx#zph+sxm)q%j-(i8(clv7qq1l"