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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jprousseau
Frequent Visitor

html viewer or add tile --> web content shows "refused to connect"

If i use for example

<iframe width="1591" height="1000" src="https://exceleratorbi.com.au/extending-power-bi-r-visuals/" frameborder="0"></iframe>

it works

but for

<iframe width="1591" height="1000" src="https://www.google.co.za/" frameborder="0"></iframe>

it says refused to connect

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @jprousseau ,

 

I have pressed F12 to get more details, it said: Refused to display 'https://www.google.co.za/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

x-frame-options.PNG

To my knowledge,X-Frame-Options is a header included in the response to the request to state if the domain requested will allow itself to be displayed within a frame. It has nothing to do with javascript or HTML, and cannot be changed by the originator of the request.

 

This website (https://www.google.co.za/) has set this header to disallow it to be displayed in an iframe. There is nothing a client can do to stop this behaviour.

 

Refer to:

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

https://stackoverflow.com/questions/27358966/how-to-set-x-frame-options-on-iframe

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
v-eqin-msft
Community Support
Community Support

Hi @jprousseau ,

 

I have pressed F12 to get more details, it said: Refused to display 'https://www.google.co.za/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

x-frame-options.PNG

To my knowledge,X-Frame-Options is a header included in the response to the request to state if the domain requested will allow itself to be displayed within a frame. It has nothing to do with javascript or HTML, and cannot be changed by the originator of the request.

 

This website (https://www.google.co.za/) has set this header to disallow it to be displayed in an iframe. There is nothing a client can do to stop this behaviour.

 

Refer to:

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

https://stackoverflow.com/questions/27358966/how-to-set-x-frame-options-on-iframe

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

jprousseau
Frequent Visitor

jprousseau_0-1620385267593.png

 

jprousseau
Frequent Visitor

Yes the viewer and the "add tile" web content also not working

 

amitchandak
Super User
Super User

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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