Skip to content

Commit

Permalink
prueba csfr
Browse files Browse the repository at this point in the history
  • Loading branch information
mpvaldez committed Jun 7, 2024
1 parent e9d98ef commit 570ea92
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion blog/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions blog/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 570ea92

Please sign in to comment.