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="">
    <div style="display: inline;">
      <img height="1" width="1" style="border-style: none;" alt="" src="''/?label='';guid=ON&amp;script=0" />
    <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)">



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

Aucun commentaire:

Enregistrer un commentaire