From 7883b6290f3d023f807348526dd2858e9b790617 Mon Sep 17 00:00:00 2001 From: Dmitriy Lyalyuev Date: Fri, 14 Oct 2022 12:21:00 +0300 Subject: [PATCH] fix: CSRF trusted origins --- later42/settings.py | 1 + requirements.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/later42/settings.py b/later42/settings.py index 6dbd249..8ab47e0 100644 --- a/later42/settings.py +++ b/later42/settings.py @@ -26,6 +26,7 @@ SECRET_KEY = os.getenv('SECRET', 'django-insecure-c%g@wujt4dco#e%k-!25o3)0%t+wm5 DEBUG = os.getenv('DEBUG', 'False') ALLOWED_HOSTS = ['*'] +CSRF_TRUSTED_ORIGINS = ['*'] # Application definition diff --git a/requirements.txt b/requirements.txt index 26bf1a0..a392712 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,4 +5,4 @@ bs4==0.0.1 requests==2.28.1 djangorestframework==3.14.0 whitenoise==6.2.0 -psycopg2-binary +psycopg2-binary==2.9.4