🔨(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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user