lundi 9 novembre 2015

'X-Frame-Options' to 'SAMEORIGIN' google maps MVC

I want to display the Google maps with the following code using iframe

<script type="text/javascript" src="http://ift.tt/zEj3Kb">
<noscript>
    <div style="display: inline;">
      <img height="1" width="1" style="border-style: none;" alt="" src="http://ift.tt/1GSMgQC''/?label='';guid=ON&amp;script=0" />
    </div>
</noscript>
    <div class="mapContainer" style="width: 251px; height: 202px;">
       <iframe id="iGmap" width="251" height="202" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="@Html.Raw(Model.CurrentBranch.GoogleMapURLWithZoomSet)">
       </iframe>
    </div>

Where

src='http://ift.tt/1HCuf3L''&amp;ll='',''&amp;spn='',''&amp;output=embed&amp;z=4'

The above code I am using in cshtml page But giving the error like Refused to display 'http://ift.tt/1GSMh6Q…&ll=,&spn=,&output=embed&z=6' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.

Aucun commentaire:

Enregistrer un commentaire