From 49aafa6d36097ff3c820b5ff1e2ee856c511a709 Mon Sep 17 00:00:00 2001 From: Grace Amondi Date: Mon, 12 Jun 2023 18:10:26 +0300 Subject: [PATCH] add trusted origins --- nmhs_cms/settings/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmhs_cms/settings/base.py b/nmhs_cms/settings/base.py index 5a4bc33e..455759a9 100644 --- a/nmhs_cms/settings/base.py +++ b/nmhs_cms/settings/base.py @@ -389,7 +389,7 @@ ACCOUNT_USERNAME_BLACKLIST = ["admin", "god", "superadmin", "staff"] ACCOUNT_USERNAME_MIN_LENGTH = 3 -CSRF_TRUSTED_ORIGINS = ['http://*.127.0.0.1', 'http://127.0.0.1','http://*.localhost', 'http://localhost','http://example.com', 'http://localhost:*', 'http://127.0.0.1:3100'] +CSRF_TRUSTED_ORIGINS = ['http://*.127.0.0.1', 'http://127.0.0.1','http://*.localhost', 'http://localhost','http://example.com', 'http://localhost:*', 'http://127.0.0.1:3031'] SOCIAL_MEDIA_SHARE_CONFIG = { 'facebook': {"base_url": "https://www.facebook.com/sharer/sharer.php", "link_param": "u"},