Forum Discussion
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 or am i doing something wrong with the measure -
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
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.
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.
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.
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
2 Replies
- WJ876400
Helper IV
Thank you very much that is very helpful
- suparnababu8
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
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.
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.
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.
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