diff --git a/cms/envs/test.py b/cms/envs/test.py index b4d32a8aecc5..afa96990677f 100644 --- a/cms/envs/test.py +++ b/cms/envs/test.py @@ -240,3 +240,8 @@ INACTIVE_USER_URL = "http://localhost:18010" POLICY_CHANGE_GRADES_ROUTING_KEY = "edx.lms.core.default" SINGLE_LEARNER_COURSE_REGRADE_ROUTING_KEY = "edx.lms.core.default" + +# lms/envs/test.py sets this; the CMS side never has, but embed_block_view (used to preview +# library content, including from Studio) reads settings.CORS_ORIGIN_WHITELIST directly with +# no fallback, so any test that exercises it fails with an AttributeError unless this is set. +CORS_ORIGIN_WHITELIST = [] diff --git a/cms/static/js/views/modals/preview_v2_library_changes.js b/cms/static/js/views/modals/preview_v2_library_changes.js index 943fe103220e..2f65bc65756f 100644 --- a/cms/static/js/views/modals/preview_v2_library_changes.js +++ b/cms/static/js/views/modals/preview_v2_library_changes.js @@ -65,7 +65,7 @@ function($, _, gettext, BaseModal, ViewUtils) { getContentHtml: function() { return ` -