From 5b3207bc2462507eb26d34898f0f1b60a6f7654d Mon Sep 17 00:00:00 2001 From: c0mputerguru Date: Mon, 18 Mar 2024 17:33:02 +0000 Subject: [PATCH] Add CSRF trusted origins to support github codespaces. --- .devcontainer/devcontainer.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index db95c29ec..65c06c534 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -20,6 +20,10 @@ "ms-python.python" ] } + }, + + "containerEnv": { + "CSRF_TRUSTED_ORIGINS": "http://localhost:8000,http://localhost:8080" } // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.