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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Display external webpa...
Power Pages
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard