MDL-74288 enrol_lti: fix cross-origin postMessage call in registration
This isn't using the targetOrigin, which should be passed as 2nd param.
This commit is contained in:
@@ -188,4 +188,6 @@ if ($regresponse) {
|
||||
}
|
||||
}
|
||||
|
||||
echo "<script>(window.opener || window.parent).postMessage({subject: 'org.imsglobal.lti.close'});</script>";
|
||||
echo "<script>
|
||||
(window.opener || window.parent).postMessage({subject: 'org.imsglobal.lti.close'}, '$openidconfig->issuer');
|
||||
</script>";
|
||||
|
||||
Reference in New Issue
Block a user