trusted origins dev
All checks were successful
Build and Push Docker Image / build (push) Successful in 23s

This commit is contained in:
Corban-Lee Jones 2024-08-14 00:00:48 +01:00
parent 2ee4b3102a
commit 13937d02ee
2 changed files with 2 additions and 3 deletions

View File

@ -7,4 +7,3 @@ staticfiles/
.bump2version.cfg
.env
.git/
.gitignore

View File

@ -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