From 9ec3aeb73fccecb1a58ec9cbd0c4c9b5a410e1a9 Mon Sep 17 00:00:00 2001 From: Yash Dusing Date: Sat, 17 Nov 2018 23:54:00 +0530 Subject: [PATCH] Updated views.py --- ide/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ide/views.py b/ide/views.py index 9cd03ea87..8907266ab 100644 --- a/ide/views.py +++ b/ide/views.py @@ -12,7 +12,10 @@ def index(request): - return render(request, 'index.html') + response = render(request, "index.html", {}) + response['X-Content-Type-Options'] = 'nosniff' + response['X-XSS-Protection'] = '1' + return response @csrf_exempt