varad
1
Hi Team,
I am facing issue with Streamlit iframe component, whenever i executes the code it gives error “website_url refused to connect”.
below is my code for reference :
import streamlit as st
import streamlit.components.v1 as components
components.iframe("https://www.geeksforgeeks.org/")
If you check the Chrome developer console, you’ll see the following error:
chromewebdata/:1 Refused to display 'https://www.geeksforgeeks.org/' in a frame because it set 'X-Frame-Options' to 'deny'.
This indicates that the website you’re trying to embed in an iframe has disallowed loading of their website in an iframe outside of their domain
1 Like