fix: xframe options (#31981)

This commit is contained in:
Jansen Kantor
2023-03-23 10:22:41 -04:00
committed by GitHub
parent 1ae9ed0144
commit c319b55f9c

View File

@@ -1722,14 +1722,14 @@ class XBlockContentInspector:
return False
@method_decorator(ensure_valid_usage_key, name='dispatch')
@method_decorator(xframe_options_exempt, name='dispatch')
@method_decorator(transaction.non_atomic_requests, name='dispatch')
class BasePublicVideoXBlockView(View):
"""
Base functionality for public video xblock view and embed view
"""
@method_decorator(ensure_valid_usage_key)
@method_decorator(xframe_options_exempt)
@method_decorator(transaction.non_atomic_requests)
def get(self, _, usage_key_string):
""" Load course and video and render public view """
course, video_block = self.get_course_and_video_block(usage_key_string)