Skip to content

Commit

Permalink
fix: Allow accessing the v2 xblock "embed block" view from Studio
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Oct 5, 2024
1 parent 1fe29dc commit 4776de3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cms/templates/xblock_v2/xblock_iframe.html
2 changes: 1 addition & 1 deletion openedx/core/djangoapps/xblock/rest_api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def embed_block_view(request, usage_key_str, view_name):
'lms_root_url': lms_root_url,
'is_development': settings.DEBUG,
}
response = render(request, 'xblock_v2/xblock_iframe.html', context, content_type='text/html')
response = render(request, 'xblock_v2/xblock_iframe.html', context, content_type='text/html', using='django')

# Only allow this iframe be embedded if the parent is in the CORS_ORIGIN_WHITELIST
cors_origin_whitelist = configuration_helpers.get_value('CORS_ORIGIN_WHITELIST', settings.CORS_ORIGIN_WHITELIST)
Expand Down

0 comments on commit 4776de3

Please sign in to comment.