From 5931321409bc0d3cbfd71e26bfc425032bd8469d Mon Sep 17 00:00:00 2001 From: Fer-Bar Date: Thu, 15 Feb 2024 12:19:09 -0300 Subject: [PATCH] Allowing safe HTTP methods to improve the security --- pet/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pet/views.py b/pet/views.py index 062df8e..2fdbe59 100644 --- a/pet/views.py +++ b/pet/views.py @@ -1,5 +1,7 @@ from django.shortcuts import render +from django.views.decorators.http import require_http_methods +@require_http_methods(["GET"]) def main_page(request): return render(request, 'pet/main_page.html')