Cross domain iframe error
Problem reported by Neil McDonald - 11/21/2025 at 10:53 AM
Resolved
The error described here seems to be back when accessing the viewer in a cross domain iframe. Reverting to version 7.7.0 fixes it again. The error in the browser console is:

Uncaught SecurityError: Failed to read a named property 'matchMedia' from 'Window': Blocked a frame with origin "https://xxx" from accessing a cross-origin frame.
    at GleamTech.Loader.load (es.js:1052:26)
    at HTMLDocument.<anonymous> (es.js:802:29)
    at e (es.js:2:27028)
    at t (es.js:2:27330)
Cem Alacayir Replied
Employee Post Marked As Resolution
This is now fixed with Version 7.8.5 - December 18, 2025:
  • Fixed: Error when DocumentViewer is put into a cross-domain iframe:
    Uncaught (in promise) SecurityError: Failed to read a named property 'matchMedia' from 'Window'
    Also avoid Blocked autofocusing on a <button> element in a cross-origin subframe. browser warning
    by not using autofocus attribute.

Reply to Thread

Enter the verification text