• I am posting this here as it’s not really a question unique to a particular plugin, but common to most lightbox plugins that support display of external URLs in a lightbox (e.g. JQuery Colorbox, Shadowbox, etc). My question is why do these plugins result in an error “Domains, protocols and ports must match” on some websites, but not on others. And why should a URL that loads perfectly well in a plugin like “Simple Popup” then throw this error when you add “rel=lightbox” to display it in a lightbox?

    I get that this is a problem with the way Google Chrome applies browser security. But why only for lightboxes, and not for other kinds of popups? Is there anything that can be done about it? In my case, I have no control over the URLs I want to display in the lightbox – e.g. Google Maps, Agoda location maps, etc.

Viewing 1 replies (of 1 total)
  • Thread Starter qlddrones

    (@websupportguy)

    Before anyone mentions “JavaScript implementations in modern web browsers do not allow cross-domain scripting”, can I add that I have been able to successfully embed Google maps in a lightbox. I get the same error, but it does not stop the frame content from displaying. But if I try to do it with an Agoda hotels map, e.g.:
    http://www.agoda.com/pages/agoda/popup/popup_areamap.aspx?hotel_id=461790&area_id=26026&area_Name=Pratunam&city_id=9395&city_Name=Bangkok&country_id=106&latitude=100.542068481445&longitude=13.7503242492676&PopupSize=80&asq=gFH8gcqAcjR%2bwXCOf14iyw%3d%3d&width=990&height=525
    then the error blocks the map from displaying in the lightbox, although the map legend does display. The only thing I can see that’s odd is that the Agoda map tries to load JQuery from a different sub-domain (img.agoda.net) which might be an issue. It also loads its base map from “maps.googleapis.com” which I think might be the real problem. And it loads its map icons from “cdn0.agoda.net” which could also be a problem. Is there some way, within the lightbox code, for me to mark these domains as safe so the browser does not block them when I call the content in the lightbox?

Viewing 1 replies (of 1 total)
  • The topic ‘"Domains, protocols and ports must match" error’ is closed to new replies.