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