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)