From f38622fdc9ffa047f2f45d953197646c1c714e97 Mon Sep 17 00:00:00 2001
From: Bart Schuurmans <bart@minnozz.com>
Date: Tue, 2 Apr 2024 12:38:53 +0200
Subject: [PATCH] Define CSRF_TRUSTED_ORIGINS

---
 bookwyrm/settings.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py
index 74bd363e5..c075c9c87 100644
--- a/bookwyrm/settings.py
+++ b/bookwyrm/settings.py
@@ -366,6 +366,7 @@ if (USE_HTTPS and PORT == 443) or (not USE_HTTPS and PORT == 80):
 else:
     NETLOC = f"{DOMAIN}:{PORT}"
 BASE_URL = f"{PROTOCOL}://{NETLOC}"
+CSRF_TRUSTED_ORIGINS = [BASE_URL]
 
 USER_AGENT = f"BookWyrm (BookWyrm/{VERSION}; +{BASE_URL})"