From 59bcc9f4ec82a96cbcd65f88193e694a6bb15ba4 Mon Sep 17 00:00:00 2001 From: Adora Date: Mon, 24 Jun 2024 15:54:44 -0600 Subject: [PATCH] Fix #3 Adding site to CSRF configuration --- myFacegram/settings_production.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/myFacegram/settings_production.py b/myFacegram/settings_production.py index b2df361..d92cacf 100644 --- a/myFacegram/settings_production.py +++ b/myFacegram/settings_production.py @@ -35,6 +35,9 @@ 'node85a.containers.back4app.com', 'https://node85a.containers.back4app.com', ] +CSRF_TRUSTED_ORIGINS = ['https://myfacegram-bohfye0n.b4a.run/'] +CSRF_ALLOWED_ORIGINS = ['https://myfacegram-bohfye0n.b4a.run/'] +CORS_ORIGINS_WHITELIST = ['https://myfacegram-bohfye0n.b4a.run/'] # Application definition