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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.