From 570ea92dcfeb18d63540467d69588a59600179bf Mon Sep 17 00:00:00 2001 From: Pano Valdez Date: Fri, 7 Jun 2024 13:33:00 -0300 Subject: [PATCH] prueba csfr --- blog/settings/base.py | 2 +- blog/settings/dev.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/blog/settings/base.py b/blog/settings/base.py index 40ea85c..438e86e 100644 --- a/blog/settings/base.py +++ b/blog/settings/base.py @@ -52,7 +52,7 @@ MIDDLEWARE = [ "django.contrib.sessions.middleware.SessionMiddleware", "django.middleware.common.CommonMiddleware", - # "django.middleware.csrf.CsrfViewMiddleware", + "django.middleware.csrf.CsrfViewMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware", diff --git a/blog/settings/dev.py b/blog/settings/dev.py index cae16c9..63f8679 100644 --- a/blog/settings/dev.py +++ b/blog/settings/dev.py @@ -8,6 +8,7 @@ # SECURITY WARNING: define the correct hosts in production! ALLOWED_HOSTS = ["*"] +CSRF_TRUSTED_ORIGINS = ['https://*.democraciaenred.org'] EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"