add csrf trusted

This commit is contained in:
Kseninia Mikhaylova 2024-06-25 14:44:46 +03:00
parent fdfd8e28f6
commit d8d9cef44d
1 changed files with 6 additions and 2 deletions

View File

@ -27,19 +27,23 @@ SECRET_KEY = "django-insecure-ruo!wst&sb8(f9)j5u4rda-w!673lj_-c0a%gx_t@)ff*q*2ze
# SECURITY WARNING: don't run with debug turned on in production! # SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True DEBUG = True
NGROK_TEMP = '357e-193-228-134-167.ngrok-free.app' NGROK_TEMP = "357e-193-228-134-167.ngrok-free.app"
ALLOWED_HOSTS = [ ALLOWED_HOSTS = [
"localhost", "localhost",
NGROK_TEMP, NGROK_TEMP,
"192.168.103.159", "192.168.103.159",
"back", "back",
"toinv.svs-tech.pro",
] ]
CORS_ALLOWED_ORIGINS = [ CORS_ALLOWED_ORIGINS = [
"http://localhost:3000", "http://localhost:3000",
"http://192.168.103.159:3000", "http://192.168.103.159:3000",
"https://toinv.svs-tech.pro", "https://toinv.svs-tech.pro",
"back",
]
CSRF_TRUSTED_ORIGINS = [
"https://toinv.svs-tech.pro",
] ]
# Application definition # Application definition
INSTALLED_APPS = [ INSTALLED_APPS = [