I developed a React application using create-react-app
and was trying to embed another website on to the React App using Iframe. It was working fine until I tried to resize the iframe to fit the size of my page, I was getting Blocked a frame with origin from accessing a cross-origin frame
.
To tackle this, I tried npm packages like iframe-resizer
, zoid
, and few others but none of them helped me. After a lot of frustration, I decided to move away from the iframe.
Could anyone point me a good way to embed a website on to my react application without iframes?