Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
WJ876400
Helper IV
Helper IV

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.

 

WJ876400_0-1725538956303.png

would this be my company firewall blocking it or am i doing something wrong with the measure -

 

 "<iframe src=" & Websites[URL] & " style='position: fixed; width: 100%; height: 100%'></iframe>"
 
any help is appreciated, thanks
1 ACCEPTED SOLUTION
suparnababu8
Super User
Super User

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-a...

 

View solution in original post

2 REPLIES 2
WJ876400
Helper IV
Helper IV

Thank you very much that is very helpful

suparnababu8
Super User
Super User

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-a...

 

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors