Skip to content
Snippets Groups Projects
Commit 0e005c4d authored by noraiz-anwar's avatar noraiz-anwar
Browse files

exempt pdf view from xframe_options:deny

parent 1eba936a
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ Views for serving static textbooks.
"""
from django.contrib.auth.decorators import login_required
from django.views.decorators.clickjacking import xframe_options_exempt
from django.http import Http404
from opaque_keys.edx.keys import CourseKey
......@@ -60,6 +61,7 @@ def remap_static_url(original_url, course):
@login_required
@xframe_options_exempt
def pdf_index(request, course_id, book_index, chapter=None, page=None):
"""
Display a PDF textbook.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment