diff --git a/combo/apps/dataviz/views.py b/combo/apps/dataviz/views.py index 0d53ef23..6bdfc2af 100644 --- a/combo/apps/dataviz/views.py +++ b/combo/apps/dataviz/views.py @@ -20,6 +20,7 @@ from django.http import Http404, HttpResponse, HttpResponseBadRequest from django.shortcuts import render from django.template import TemplateSyntaxError, VariableDoesNotExist from django.utils.translation import ugettext_lazy as _ +from django.views.decorators.clickjacking import xframe_options_sameorigin from django.views.generic import DetailView from requests.exceptions import HTTPError @@ -107,4 +108,4 @@ class DatavizGraphView(DetailView): return render(self.request, 'combo/dataviz-error.svg', context=context, content_type='image/svg+xml') -dataviz_graph = DatavizGraphView.as_view() +dataviz_graph = xframe_options_sameorigin(DatavizGraphView.as_view())