web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Display external webpa...
Power Pages
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

Categories:
I have the same question (0)
  • Verified answer
    OOlashyn Profile Picture
    3,496 Most Valuable Professional on at

    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.

  • tarikulislamceo Profile Picture
    4 on at

    just simple solution

     go .htaccess   

    put this line 

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

     

     

  • 0-9eth Profile Picture
    2 on at

    @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?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
DP_Prabh Profile Picture

DP_Prabh 51

#2
rezarizvii Profile Picture

rezarizvii 35

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 35 Most Valuable Professional

Last 30 days Overall leaderboard