I am implementing React IFrame in React JS using react-iframe .
When I run it on my localhost server then it says
Refused to display 'https://www.facebook.com/' in a frame because it set 'X-Frame-Options' to 'deny'.
Below is my code I have written.
import React from "react";
import Iframe from 'react-iframe'
export default function IFrameComponent() {
return(
<Iframe url="https://www.facebook.com/"
width="450px"
height="450px"
id="myId"
className="myClassname"
display="initial"
position="relative"/>
)
}
Any Help would be great.
Thank You.