From 65c483e9359ee4ab7750ec19855510dfdac940db Mon Sep 17 00:00:00 2001 From: catvayor Date: Sun, 9 Mar 2025 01:06:17 +0100 Subject: [PATCH] fix(cof): also fix mailinglist captcha --- gestioncof/cms/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gestioncof/cms/views.py b/gestioncof/cms/views.py index 83a67ae6..cf0b85dd 100644 --- a/gestioncof/cms/views.py +++ b/gestioncof/cms/views.py @@ -1,12 +1,15 @@ from django.shortcuts import render +from django.views.decorators.clickjacking import xframe_options_sameorigin from gestioncof.cms.forms import CaptchaForm +@xframe_options_sameorigin def raw_calendar_view(request, year, month): return render(request, "cofcms/calendar_raw.html", {"month": month, "year": year}) +@xframe_options_sameorigin def sympa_captcha_form_view(request): if request.method == "POST": form = CaptchaForm(request.POST)