From 2252269eaf267e43aa29581687fb6f0237a2c128 Mon Sep 17 00:00:00 2001 From: Zacharis278 Date: Tue, 12 Dec 2023 13:46:40 -0500 Subject: [PATCH] feat: new checkApp origin requirement --- src/data/messages/proctorio.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/data/messages/proctorio.js b/src/data/messages/proctorio.js index 935d53ae..a32aa2b3 100644 --- a/src/data/messages/proctorio.js +++ b/src/data/messages/proctorio.js @@ -5,10 +5,12 @@ * vendor-specific integrations long term. As of now these events * will trigger on ANY lti integration, not just Proctorio. */ +import { getConfig } from '@edx/frontend-platform'; + export async function checkAppStatus() { return new Promise((resolve, reject) => { const handleResponse = event => { - if (event.origin === window.location.origin) { + if (event.origin === getConfig().EXAMS_BASE_URL) { window.removeEventListener('message', handleResponse); if (event?.data?.active) { resolve();