From 641a3a7d31f118869085a76bf5c2cbc70afd7101 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Tue, 28 Dec 2021 17:45:46 +0100 Subject: [PATCH] add CSRF_TRUSTED_ORIGINS --- network_inventory/settings/docker.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/network_inventory/settings/docker.py b/network_inventory/settings/docker.py index d8dd82c..a68ec29 100644 --- a/network_inventory/settings/docker.py +++ b/network_inventory/settings/docker.py @@ -5,6 +5,9 @@ ALLOWED_HOSTS = [ '127.0.0.1', ] +CSRF_TRUSTED_ORIGINS = [ + 'http://localhost:8080', +] # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY')