Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Answered

Display external webpage content: iframe refused to connect

(0) ShareShare
ReportReport
Posted on by 10

My goal is to display content from an external web page (company SharePoint) onto the Portal. I am trying to do this by displaying an iframe, but despite adding the solution suggested here, and adding HTTP Content Security Policy headers as well (Content-Security-Policy ), I have had no success displaying the iframe. It simply says <site-url> refused to connect. Is there another site setting (perhaps another HTTP header) I should try? I have also tried the ajax .load() method as well as trying to display the RSS feed of the site, to no avail. If anyone has a solution, it would be very much appreciated! Thank you

  • 0-9eth Profile Picture
    2 on at
    Re: Display external webpage content: iframe refused to connect

    @tarikulislamceo wrote:

    just simple solution

     go .htaccess   

    put this line 

    Header always set X-Frame-Options "SAMEORIGIN"
    Header set X-Frame-Options "allow"


    Will this work even if I don't have access to the root domain?

  • tarikulislamceo Profile Picture
    4 on at
    Re: Display external webpage content: iframe refused to connect

    just simple solution

     go .htaccess   

    put this line 

    Header always set X-Frame-Options "SAMEORIGIN"
    Header set X-Frame-Options "allow"

     

     

  • Verified answer
    OOlashyn Profile Picture
    3,496 Most Valuable Professional on at
    Re: Display external webpage content: iframe refused to connect

    Hi @gt_ ,

     

    You cannot fix this from Power Apps Portal side. Most probably web site that you try to embed as an iframe doesn't allow to be embedded. You need to update X-Frame-Options on the website that you are trying to embed to allow your Power Apps Portal (if you have control over that website). You can find more here.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35