ابحث في الدعم

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to catch CORS error while loading external website in iframe.

  • ما من ردود
  • 1 has this problem
  • 4 views
more options

Loading external website in an iframe is getting blocked because of x-frame-options in response headers. I want to listen to the error from iframe and show some alert to the user. So is there any way to catch the exception/error while loading external content in an iframe??

Loading external website in an iframe is getting blocked because of x-frame-options in response headers. I want to listen to the error from iframe and show some alert to the user. So is there any way to catch the exception/error while loading external content in an iframe??