fix: xframe options (#31981)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user