If you are trying to embed an eternal URL to your SharePoint page and you get the below error, well your URL should be a secure one that starts with https
Why are HTTP URLs not allowed? It is a security measure taken by SharePoint to prevent malicious content from being embedded in pages that can potentially be harmful to users.
Fix:
Belore:
<iframe src="http://code2care.org/sharepoint/embed-web-page-in-sharepoint" width=300 height=300></iframe>
After:
<iframe src="https://code2care.org/sharepoint/embed-web-page-in-sharepoint" width=300 height=300></iframe>
Facing issues? Have Questions? Post them here! I am happy to answer!
Author Info:
Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.
Follow him on: X
You can also reach out to him via e-mail: rakesh@code2care.org