🔨(backend) add local CSRF_TRUSTED_ORIGINS

To allow the frontend to make requests to the backend,
we need to add the frontend's origin
to the CSRF_TRUSTED_ORIGINS setting.
This commit is contained in:
Anthony LC
2024-04-10 12:28:10 +02:00
committed by Anthony LC
parent a5a8a64350
commit 9ca63baeeb

View File

@@ -412,7 +412,7 @@ class Development(Base):
ALLOWED_HOSTS = ["*"]
CORS_ALLOW_ALL_ORIGINS = True
CSRF_TRUSTED_ORIGINS = ["http://localhost:8072"]
CSRF_TRUSTED_ORIGINS = ["http://localhost:8072", "http://localhost:3000"]
DEBUG = True
SESSION_COOKIE_NAME = "impress_sessionid"