Cannot view embedded Google Maps because "Internet Explorer has modified this page to prevent cross-site scripting"

The crashed page http://beta.westlake.school.nz/school-details when viewed using IE8

+4
source share
1 answer

In my case, this is apparently caused by a few single quotes in the hnear argument in the hnear url. Removing quotes from the iframe src and a href attributes fixes the problem.

For instance,

 <a href="http://maps.google.com/maps/ms?source=embed&amp;hl=fr&amp;geocode=&amp;aq=&amp;ie=UTF8&amp;hq=&amp;hnear=Ch%C3%A2teau-d'%C5%92x,+Riviera-Pays-d'Enhaut,+Vaud,+Switzerland&amp;msa=0&amp;ll=46.472921,7.130213&amp;spn=0.021578,0.055747&amp;msid=208989902893156915814.0004a534bae54848e2335"> 

has become

 <a href="http://maps.google.com/maps/ms?source=embed&amp;hl=fr&amp;geocode=&amp;aq=&amp;ie=UTF8&amp;hq=&amp;hnear=Ch%C3%A2teau-d%C5%92x,+Riviera-Pays-dEnhaut,+Vaud,+Switzerland&amp;msa=0&amp;ll=46.472921,7.130213&amp;spn=0.021578,0.055747&amp;msid=208989902893156915814.0004a534bae54848e2335"> 

Not sure if Google didn't need an argument in my case, or it could handle the changes gracefully.

+3
source

Source: https://habr.com/ru/post/1310477/


All Articles