Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ederrafo/4e86b5d03347f800fb6cb6ce12b13574 to your computer and use it in GitHub Desktop.
Save ederrafo/4e86b5d03347f800fb6cb6ce12b13574 to your computer and use it in GitHub Desktop.
How to check whether a web page can be loaded in iframe
Cómo comprobar si una página web se puede cargar en iframe
Sometimes you may want to load other website's page in your own website's iframe, but due to some security concerns, other website may have security configurations which prevent you from loading their pages into your iframe.
In this case, if you try to load them, you would see a blank page or a text message telling that it's prohibited. Fortunately, you can detect this before you actually decide to load it.
https://www.pixelstech.net/article/1532747442-How-to-check-whether-a-web-page-can-be-loaded-in-iframe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment