From 13937d02ee8a5611dd1c1181433f749177d79e85 Mon Sep 17 00:00:00 2001 From: Corban-Lee Jones Date: Wed, 14 Aug 2024 00:00:48 +0100 Subject: [PATCH] trusted origins dev --- .dockerignore | 1 - core/settings.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.dockerignore b/.dockerignore index 07609c9..bc6932a 100644 --- a/.dockerignore +++ b/.dockerignore @@ -7,4 +7,3 @@ staticfiles/ .bump2version.cfg .env .git/ -.gitignore \ No newline at end of file diff --git a/core/settings.py b/core/settings.py index 2b8928b..13d7b8c 100644 --- a/core/settings.py +++ b/core/settings.py @@ -34,8 +34,8 @@ SECRET_KEY = env('SECRET_KEY', default="unsecure-default-secret-key") DEBUG = env('DEBUG') # Hosts and Origins that the server host must be within. -ALLOWED_HOSTS = ["localhost", "127.0.0.1", env("HOST", default="127.0.0.1")] -CSRF_TRUSTED_ORIGINS = ["http://localhost", "http://127.0.0.1", "https://" + env("HOST", default="127.0.0.1")] +ALLOWED_HOSTS = ["localhost", "127.0.0.1", "pyrss-website", env("HOST", default="127.0.0.1")] +CSRF_TRUSTED_ORIGINS = ["http://localhost", "http://127.0.0.1", "pyrss-website", "https://" + env("HOST", default="127.0.0.1")] # Application definition