Forum Discussion
Rajath_Krishna
Dec 28, 2022Copper Contributor
Embed code - Refused to connect
I am embedding a job portal website "Zoho jobs" in SharePoint site. Embed code is correct but the website is refusing to connect.
Receiving error as "Refused to connect".
Can anyone help me how to fix this?
Embed Code: -
<iframe width="560" height="315" src="https://billedright.zohorecruit.in" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Error: -
- SvenSieverdingBronze Contributor
Hi Rajath_Krishna,
the page
https://billedright.zohorecruit.in/jobs/Careers
is sending the
X-Frame-Options:DENY
header.
You cannot embed that using an iframe as long as that header is present (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options).
Best Regards,Sven
- Rajath_KrishnaCopper ContributorHi SvenSieverding,
Thank you for suggestion also can you please recommend me how to remove header or what step I should take to remove it- SvenSieverdingBronze Contributor
Hi Rajath_Krishna ,
unfortunately you cannot do that as long as you are not the owner of the site
https://billedright.zohorecruit.in/jobs/Careers
This has to be disabled in the server settings. (See here: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options . That what has been configured here needs to be undone on the server)
The site owner does not want this site to be displayed in an iframe.
Best Regards,
Sven