Javascript – Unsafe JavaScript attempt to access frame with google maps

google mapsiframejavascript

Google chrome gives me this message when I am using google maps frame on my contacts page:

Unsafe JavaScript attempt to access frame with URL
http://localhost/igames/index.php?page=contact_us&&lang=rus from frame
with URL
http://maps.google.com/?ie=UTF8&ll=44.590467,-105.820312&spn=10.747987,23.269043&t=m&z=6&vpsrc=6&output=embed.
Domains, protocols and ports must match.

Is there any way to fix it?

Best Answer

For reference, it would seems to be a bug in Google Chrome: http://code.google.com/p/chromium/issues/detail?id=43173

Ben Lee's workaround seems to be the only workaround as long as it doesn't get fixed in Google Chrome.