summaryrefslogtreecommitdiff
path: root/pgweb/docs/views.py
diff options
context:
space:
mode:
authorMagnus Hagander2021-08-20 12:43:59 +0000
committerMagnus Hagander2021-08-20 12:43:59 +0000
commitfff748282b003198ab99fb036a96e986447c9548 (patch)
tree4482394d5b115f1b99e7d2b6f0c826fe6885e929 /pgweb/docs/views.py
parentfc1d49da217ae3cb1e229ace4d805fb69bb552b9 (diff)
Disallow framing of the documentation pages
We previously had an exception on the documentation pages, because pgadmin4 used to load them in an iframe. This is no longer the case and hasn't been for a while, so remove the exception. Confirmed "shuold be ok" by Dave Page :)
Diffstat (limited to 'pgweb/docs/views.py')
-rw-r--r--pgweb/docs/views.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pgweb/docs/views.py b/pgweb/docs/views.py
index 34033e32..236c5c73 100644
--- a/pgweb/docs/views.py
+++ b/pgweb/docs/views.py
@@ -1,7 +1,7 @@
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponseRedirect, HttpResponsePermanentRedirect, HttpResponseNotFound
from django.http import HttpResponse, Http404
-from pgweb.util.decorators import login_required, allow_frames, content_sources
+from pgweb.util.decorators import login_required, content_sources
from django.template.defaultfilters import strip_tags
from django.db.models import Q
from django.conf import settings
@@ -27,7 +27,6 @@ def _versioned_404(msg, version):
return r
-@allow_frames
@content_sources('style', "'unsafe-inline'")
def docpage(request, version, filename):
loaddate = None
@@ -151,7 +150,6 @@ def docpage(request, version, filename):
return r
-@allow_frames
def docsvg(request, version, filename):
if version == 'current':
ver = Version.objects.filter(current=True)[0].tree