Iframe component showing REFUSED TO CONNECT while adding SharePoint site, how to embed X-Frame-Options Code to make this work as it is not allowing by default

Iframe component showing REFUSED TO CONNECT while adding SharePoint site, how to embed X-Frame-Options Code to make this work as it is not allowing by default