Add backend url to csrf

This commit is contained in:
Keannu Bernasol 2024-01-05 21:23:44 +08:00
parent 46588f52bf
commit 6f5911144c

View file

@ -32,7 +32,7 @@ DEBUG = False
ALLOWED_HOSTS = ['*'] ALLOWED_HOSTS = ['*']
CSRF_TRUSTED_ORIGINS = [ CSRF_TRUSTED_ORIGINS = [
"https://csm-frontend.keannu1.duckdns.org"] "https://csm-frontend.keannu1.duckdns.org", "https://csm-backend.keannu1.duckdns.org"]
# Email credentials # Email credentials
EMAIL_HOST = '' EMAIL_HOST = ''
@ -214,7 +214,7 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'
DOMAIN = 'csm-frontend.keannu1.duckdns.org/#' DOMAIN = 'csm-frontend.keannu1.duckdns.org/#'
SITE_NAME = 'CITC Equipment Tracker' SITE_NAME = 'CSM Borrowing Tracker'
# 1 week access token lifetime # 1 week access token lifetime
SIMPLE_JWT = { SIMPLE_JWT = {