Skip to content

frameResizeScript

frameResizeScript(targetOrigin?): string

Defined in: packages/next/src/index.ts:275

Client-side snippet that posts the document height to the LMS parent frame so the iframe auto-resizes (Canvas/Moodle listen for lti.frameResize). Inline it in a <script> (allow it in your CSP). Prefer a concrete targetOrigin over the default '*' when you know the LMS origin.

string = '*'

string