From 58b40710f0a43b1dde57a6dc1d1adb7a471b10da Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 21 Mar 2021 16:00:33 +0100 Subject: [PATCH] Set security headers in django instead of reverse proxy --- .../articles/snippets/analytics.html | 9 ++------ articles/tests/test_html_views.py | 2 +- blog/settings.py | 17 +++++++++++++++ docker/nginx-dev.conf | 9 -------- docker/nginx.conf | 9 -------- poetry.lock | 21 ++++++++++++++++++- pyproject.toml | 1 + 7 files changed, 41 insertions(+), 27 deletions(-) diff --git a/articles/templates/articles/snippets/analytics.html b/articles/templates/articles/snippets/analytics.html index 54e90ff..179b18a 100644 --- a/articles/templates/articles/snippets/analytics.html +++ b/articles/templates/articles/snippets/analytics.html @@ -1,13 +1,8 @@ {% load static %} {% if not user.is_authenticated and goatcounter_domain is not None %} - - +