Skip to content

Allow external scripts with iframeResizer

Peter Gerken requested to merge feature/allow-external-scripts into 1.x

When SPA is used with external scripts, that live on a different Domain and no special CORS-Config is available, the iFrameResizer throws the error:

Unexpected message received from: [DOMAIN] for [IFRAMEID]. Message was: [iFrameSizer][IFRAMEID]:866:1034:mutationObserver. This error can be disabled by setting the checkOrigin: false option or by providing of array of trusted domains. at isMessageFromIFrame (iframeResizer.js?smh4s5:254:15)

To fix this in a general way, I added the checkOrigin: false flag to the initialization.

Merge request reports