From d75bdf9db5c1023c52725f56596402ad77c02a7d Mon Sep 17 00:00:00 2001 From: "Mees, T.D. (Ty)" Date: Wed, 30 Oct 2024 14:50:11 +0100 Subject: [PATCH] fix: made upload-scans endpoint ssl-exempt --- humitifier-server/src/humitifier_server/settings.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/humitifier-server/src/humitifier_server/settings.py b/humitifier-server/src/humitifier_server/settings.py index ce7f695..845c1e0 100644 --- a/humitifier-server/src/humitifier_server/settings.py +++ b/humitifier-server/src/humitifier_server/settings.py @@ -123,6 +123,9 @@ X_FRAME_OPTIONS = "DENY" SECURE_SSL_REDIRECT = _https_enabled +SECURE_REDIRECT_EXEMPT = [ + r'^api/upload-scans/$' +] SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https")