From af01054cc5abdcd74b06e40b6177405704b97025 Mon Sep 17 00:00:00 2001 From: Shubham Hibare Date: Sun, 2 Jan 2022 19:19:06 +0530 Subject: [PATCH] Fix: Django Admin: Unable to login #135 --- backend/.env.example | 1 + backend/moni/__init__.py | 2 +- backend/moni/settings.py | 1 + frontend/package.json | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/.env.example b/backend/.env.example index ce7df3a..e83539d 100644 --- a/backend/.env.example +++ b/backend/.env.example @@ -1,6 +1,7 @@ DEBUG= SECRET_KEY= ALLOWED_HOSTS= +CSRF_TRUSTED_ORIGINS= DATABASE_URL= DJANGO_SU_USERNAME= DJANGO_SU_PASSWORD= \ No newline at end of file diff --git a/backend/moni/__init__.py b/backend/moni/__init__.py index a9d2718..daca629 100644 --- a/backend/moni/__init__.py +++ b/backend/moni/__init__.py @@ -1,3 +1,3 @@ -__version__ = 'v0.6.2' +__version__ = 'v0.6.3' VERSION = __version__ # synonym TITLE = 'Moni' diff --git a/backend/moni/settings.py b/backend/moni/settings.py index 0c4c9b0..f8ddece 100644 --- a/backend/moni/settings.py +++ b/backend/moni/settings.py @@ -32,6 +32,7 @@ ALLOWED_HOSTS = config('ALLOWED_HOSTS', cast=Csv(), default='*') +CSRF_TRUSTED_ORIGINS = config('CSRF_TRUSTED_ORIGINS', cast=Csv(), default='') # Application definition diff --git a/frontend/package.json b/frontend/package.json index 4a83eb9..f0dfe5a 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "moni", - "version": "0.6.2", + "version": "0.6.3", "private": true, "scripts": { "serve": "vue-cli-service serve",