From 893f58c9c9769983dee405dcb203654e086143a8 Mon Sep 17 00:00:00 2001 From: Jonas Braathen <jonas.braathen@usit.uio.no> Date: Fri, 17 Dec 2021 11:14:18 +0100 Subject: [PATCH] Add CSRF_TRUSTED_ORIGINS to development settings --- gregsite/settings/dev.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gregsite/settings/dev.py b/gregsite/settings/dev.py index 514eb8c4..239f11bb 100644 --- a/gregsite/settings/dev.py +++ b/gregsite/settings/dev.py @@ -5,6 +5,13 @@ from .base import * ENVIRONMENT = "dev" ALLOWED_HOSTS += ["localhost", "127.0.0.1", "0.0.0.0"] +CSRF_TRUSTED_ORIGINS = [ + "http://localhost:3000", + "http://localhost:8000", + "http://127.0.0.1:3000", + "http://127.0.0.1:8000", +] + # EMAIL_HOST = "smtp.uio.no" # EMAIL_PORT = "468" # EMAIL_USE_SSL = True -- GitLab