Forum Discussion

WJ876400's avatar
WJ876400
Helper IV
1 year ago
Solved

HMTL content not loading

Hi,   I am using the HML content visual and have created the Iframe but when I load it i get the below saying the website refused to connect.   would this be my company firewall blocking it...
  • suparnababu8's avatar
    1 year ago

    Hi WJ876400 

    The issue you’re encountering with the iframe refusing to connect in Power BI could be due to several reasons. Here are some common causes and solutions:

    Possible Causes and Solutions

    1. Cross-Origin Resource Sharing (CORS) Issues:

      • The website you are trying to embed might have CORS policies that prevent it from being displayed in an iframe on a different domain.
      • Solution: Ensure the website allows embedding by checking its CORS settings. You might need to contact the website administrator to enable this.
    2. X-Frame-Options Header:

      • The website might have an X-Frame-Options header set to DENY or SAMEORIGIN, which prevents it from being embedded in an iframe.
      • Solution: Again, you would need to contact the website administrator to change this setting to allow embedding.
    3. Firewall or Network Restrictions:

      • Your company’s firewall or network security settings might be blocking the connection.
      • Solution: Check with your IT department to see if there are any firewall rules or network policies that might be blocking the connection.
    4. Incorrect URL or Syntax:

      • There might be an issue with the URL or the syntax of your iframe code.
      • Solution: Double-check the URL and ensure it is correct. Also, verify that the syntax of your iframe code is correct.

    If you need additional information pls follow below links

    https://skillapp.co/blog/troubleshooting-guide-how-to-fix-iframe-refused-to-connect-error/

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

    https://community.fabric.microsoft.com/t5/Desktop/Getting-error-app-powerbi-com-refused-to-connect-after-embedding/td-p/2231772