Forum Discussion

little's avatar
little
Icon for Helper I rankHelper I
2 years ago

cant not embed iframe into power bi

When I insert an HTML iframe into the HTML Viewer, if I set the 'src' attribute to 'www.baidu.com', it will be rejected. However, if I set it to 'google.translate', it will display the translation page. Interestingly, when I use my own portal, it just shows a blank page. So I want to make the blank page have sth ,it will be the Same-Origin Policy problem? what can I do to fix it?

9 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi little 

     

    To help you better, could you please provide me with screenshots that you did? That would be very helpful.

     

    Best Regards,
    Yulia Xu

    • little's avatar
      little
      Icon for Helper I rankHelper I

      hi, when I user my portal link, will show blank page.

  • hi Anonymous  But when I put translate link into iframe, will show page.

     

  • blank page and show allow-same-origin,even I add sandbox = 'allow-same-origin'. But I tried to fix it a while ago, and he would prompt other errors like 'allow-scirpt'

  • when I add sandbox='allow-same-origin',will show 'allow-scripts'

     

  • And if I use sandbox='allow-scripts allow-same-origin' , will show 'The document is sandboxed and lacks the 'allow-same-origin' flag.'

  • when I use firefox to test, show this error. Maybe is cros problem?