add csrf trusted
This commit is contained in:
parent
fdfd8e28f6
commit
d8d9cef44d
|
@ -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!
|
||||
DEBUG = True
|
||||
NGROK_TEMP = '357e-193-228-134-167.ngrok-free.app'
|
||||
NGROK_TEMP = "357e-193-228-134-167.ngrok-free.app"
|
||||
ALLOWED_HOSTS = [
|
||||
"localhost",
|
||||
NGROK_TEMP,
|
||||
"192.168.103.159",
|
||||
"back",
|
||||
"toinv.svs-tech.pro",
|
||||
]
|
||||
CORS_ALLOWED_ORIGINS = [
|
||||
"http://localhost:3000",
|
||||
"http://192.168.103.159:3000",
|
||||
"https://toinv.svs-tech.pro",
|
||||
"back",
|
||||
]
|
||||
CSRF_TRUSTED_ORIGINS = [
|
||||
"https://toinv.svs-tech.pro",
|
||||
]
|
||||
|
||||
# Application definition
|
||||
|
||||
INSTALLED_APPS = [
|
||||
|
|
Loading…
Reference in New Issue