From 6f5911144cd644f122d636033b4e20fc5a0e5f2a Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Fri, 5 Jan 2024 21:23:44 +0800 Subject: [PATCH] Add backend url to csrf --- equipment_tracker/config/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/equipment_tracker/config/settings.py b/equipment_tracker/config/settings.py index 5ea36ad..a17bd7e 100644 --- a/equipment_tracker/config/settings.py +++ b/equipment_tracker/config/settings.py @@ -32,7 +32,7 @@ DEBUG = False ALLOWED_HOSTS = ['*'] CSRF_TRUSTED_ORIGINS = [ - "https://csm-frontend.keannu1.duckdns.org"] + "https://csm-frontend.keannu1.duckdns.org", "https://csm-backend.keannu1.duckdns.org"] # Email credentials EMAIL_HOST = '' @@ -214,7 +214,7 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' DOMAIN = 'csm-frontend.keannu1.duckdns.org/#' -SITE_NAME = 'CITC Equipment Tracker' +SITE_NAME = 'CSM Borrowing Tracker' # 1 week access token lifetime SIMPLE_JWT = {