+ DISABLE_CORS option

This commit is contained in:
Phil Zhitnikov 2023-07-10 21:24:19 +04:00
parent 7840af8fe2
commit 9a44f597a7

View File

@ -28,6 +28,7 @@ CDEK_CLIENT_SECRET = '***REMOVED***'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
DISABLE_PERMISSIONS = True
DISABLE_CORS = True
ALLOWED_HOSTS = ["crm-poizonstore.ru", "127.0.0.1", "localhost", "45.84.227.72"]
@ -44,6 +45,9 @@ CORS_ALLOWED_ORIGINS = [
"https://localhost:8001",
]
if DISABLE_CORS:
CORS_ALLOW_ALL_ORIGINS = True
AUTH_USER_MODEL = 'store.User'