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 / iframe in powerapps po...
Power Pages
Answered

iframe in powerapps portals is it only supposed to work for Bing???

(0) ShareShare
ReportReport
Posted on by 50

When I try to add an iframe component and add a website it only works for Bing. Is it supposed to be like that?

I tried to add microsoft (see picture) but it didn't work it would be great to have some explanation on this issue.

I have tried to set the parameter http/X-frame options to ALLOW-FROM https:xxxx.powerappsportals.com instead of SameOrigin.

But that didn't work either.

iframe bing.pngiframe microsoft.png

 

 

Categories:
I have the same question (0)
  • oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    Which page exactly do you want in the iframe? 

     

    the allow-from parameter is not be set in the Portals, but the target site of the iframe, is that what you did ?

     

    https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • J_Karlsson Profile Picture
    50 on at

    I would like add youtube for a clips from our company.

    But first of all it would be interesting to know why only Bing is working.

     

  • oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    you shouldn't have any issues with YouTube:

    iframe.PNG

    just did here as an example

    please read the documentation from the I sent to better understand why it is not working with other sources

    this is to prevent clickjacking attacks

    I am not sure you setup the "allow-from" in your Power Apps Portals, you shouldn't be changing that unless you want to have your Portals as iFrame somewhere else

     

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • J_Karlsson Profile Picture
    50 on at

    Hi,

    how did you get it to work?

    I didn't get the documentation you said you sent me.

    Kind Regards Johan

  • Verified answer
    oliver.rodrigues Profile Picture
    9,368 Most Valuable Professional on at

    this is the documentation: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options

    I copied the iFrame from youtube and pasted on my Web Page HTML content

    if you are using the Portal Studio to make your UI changes, just go to the </> HTML icon and place the iFrame wherever you want:

    iframe.PNG

     


    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Verified answer
    J_Karlsson Profile Picture
    50 on at

    Hi,

    Thanks for a quick reply and i Actually solved it a little bit before your answer and it was the issue with the little word embed.

    <iframe width="420" height="315"
    src="https://www.youtube.com/embed/tgbNymZ7vqY?autoplay=1">

    </iframe> it seems strange though that @microsoft hasn't written anything about it in the documentation.
     

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
Fubar Profile Picture

Fubar 74 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard