How to configure IIS or? for allowing iframe pagesRSS

1 reply

Last post May 18, 2020 02:39 AM by Jalpa Panchal

  • How to configure IIS or? for allowing iframe pages

    May 15, 2020 03:53 AM|rogersb90045|LINK


    Running Windows Server 2016 Datacenter to serve an application.  Its an MVC .net 4.5.2  Well on 2 of the View pages like Help and About the content comes from a Wordpress site on the server.  The view uses iFrame to specify some page, web.config translates the name and address like localhost:8310/wordpress/pagename  So there on the server is Wordpress.

    When running this app on the server (remoting in) on the browser? it works, the home/about and help page contents come from wordpress.  But a remote browser? only gets the MVC app as always; but the iframe area?  just a faint color where the page should be and it says Localhost refused to connect.

    So remoted in and calling up a local browser? it all works.  but my home pc only gets everything but the wordpress page. How does it have to be configured so that remote browsers will "get" the wordpress page?  which is installed to the main websites name only port 8020.  But i also cannot manage the wordpress remotely, user has to be remoted in. Probably the same issue

    Thanks for any ideas or observations or?

  • Re: How to configure IIS or? for allowing iframe pages

    May 18, 2020 02:39 AM|Jalpa Panchal|LINK


    Could you please share what is your site binding for the iframe site? if you are using the localhost and port then it will not work on the remote machine. 

    First, try to access the site without the iframe.

    To allow iframe you could set below code in your iframe site web.config file:

    <add name="X-Frame-Options" value="ALLOW-FROM" />

    You could refer this below link for more detail:



    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue.
    If you have any compliments or complaints to MSDN Support, feel free to contact