From 15e3842136270001e31cc91fd81c1f903767a5a3 Mon Sep 17 00:00:00 2001 From: "sandro.meireles" Date: Mon, 26 Feb 2024 19:02:08 -0300 Subject: [PATCH] fix: Add service host as CSRF trusted origin --- apip/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apip/settings.py b/apip/settings.py index 3ac0c39..8272158 100644 --- a/apip/settings.py +++ b/apip/settings.py @@ -29,6 +29,8 @@ ALLOWED_HOSTS = env.list("ALLOWED_HOSTS") +CSRF_TRUSTED_ORIGINS = [f"https://*.{SERVICE_HOST}"] + # Application definition