vvvmax / unitegallery

Unite Gallery - Responsive jQuery Image and Video Gallery Plugin. Aim to be the best gallery on the web on it's kind. See demo here:
http://unitegallery.net
MIT License
531 stars 157 forks source link

Error iframe cross domain (google maps) #208

Open Ricardlol opened 5 years ago

Ricardlol commented 5 years ago

In page there is a google map iframe. Unite gallery tries to get content of iframe in this function once loaded: https://github.com/vvvmax/unitegallery/blob/master/dist/js/unitegallery.js#L2374 Plugin throws this error:

Uncaught DOMException: Blocked a frame with origin "http://localhost:8069" from accessing a cross-origin frame.
    at contents (http://localhost:8069/web/content/378-1824de9/web.assets_common.js:535:921)
    at Function.map (http://localhost:8069/web/content/378-1824de9/web.assets_common.js:377:156)
    at jQuery.fn.init.jQuery.fn.(anonymous function) [as contents] (http://localhost:8069/web/content/378-1824de9/web.assets_common.js:535:1040)
    at HTMLIFrameElement.t (http://localhost:8069/web/content/414-38c6a42/web.assets_frontend.js:1205:725)
    at HTMLIFrameElement.dispatch (http://localhost:8069/web/content/378-1824de9/web.assets_common.js:637:451)
    at HTMLIFrameElement.elemData.handle (http://localhost:8069/web/content/378-1824de9/web.assets_common.js:610:173)