From 496cf84a682751fd687a30415e9346dff81ace35 Mon Sep 17 00:00:00 2001
From: vermaas <vermaas@astron.nl>
Date: Mon, 16 Jan 2023 11:57:36 +0100
Subject: [PATCH] attempt to solve the http-bug in next/previous links of the
 REST API

---
 atdb/atdb/settings/docker_sdc.py                    | 1 +
 atdb/taskdatabase/templates/taskdatabase/index.html | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/atdb/atdb/settings/docker_sdc.py b/atdb/atdb/settings/docker_sdc.py
index f507dcbc..35ce0aae 100644
--- a/atdb/atdb/settings/docker_sdc.py
+++ b/atdb/atdb/settings/docker_sdc.py
@@ -13,6 +13,7 @@ ALLOWED_HOSTS = ["*"]
 # True: Enables a header that tells the UA to switch on the XSS filter.
 # http://django-secure.readthedocs.io/en/latest/middleware.html#x-xss-protection-1-mode-block
 SECURE_BROWSER_XSS_FILTER = True
+USE_X_FORWARDED_HOST = True
 
 # Prevents the site from being deployed within a iframe.
 # This prevent click-jacking attacks.
diff --git a/atdb/taskdatabase/templates/taskdatabase/index.html b/atdb/taskdatabase/templates/taskdatabase/index.html
index c93d0814..1ccfc2d6 100644
--- a/atdb/taskdatabase/templates/taskdatabase/index.html
+++ b/atdb/taskdatabase/templates/taskdatabase/index.html
@@ -34,7 +34,7 @@
         {% include 'taskdatabase/pagination.html' %}
        </div>
     </div>
-    <p class="footer"> Version 13 Januari 2022 - 11:00
+    <p class="footer"> Version 16 Januari 2022 - 12:00
 
 </div>
 
-- 
GitLab