I am trying to embed a URL in my React application using an iframe. But on the URL in iframe i am getting "xxxx site redirected you too many times" issue in the browser. Please find below code for reference.
Can anyone please guide me how to resolve this issue.
function App() {
const iframeUrl="https://example.org/";
const iframeid = "iframe";
return (
<div >
<iframe src= {iframeUrl} id={iframeid}></iframe>
</div>
);
}
It's the binding Error you're not binding src={iframeUrl} and id={iframeid} and also check they have proper values too.